Function at 0x520440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5dda03
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
push 1
xor edi, edi
push 2
lea ecx, [esp + 0x160]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], edi
call fcn.0040a750
push 1
push 2
lea ecx, [esp + 0xe0]
mov dword [esp + 0x264], 1
call fcn.0040a750
push edi
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x260], 2
call fcn.0059f6b0
cmp dword [esp + 0x220], edi
mov byte [esp + 0x25c], 3
lea ebp, [edi + 0x10]
jbe 0x520678
mov eax, dword [esp + 0x21c]
mov esi, dword [eax]
cmp esi, eax
jne 0x5204f6
call fcn.005bdf65
lea eax, [esi + 8]
push 0x63a84c
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov dword [esp + 0x1f0], 0xf
mov dword [esp + 0x1ec], edi
mov byte [esp + 0x1dc], 0
mov ebx, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], bl
call fcn.0059c1b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 5
call fcn.0059c7d0
lea edx, [esp + 0x1d8]
push edx
push str.SerialNumber
push 0x602610
lea ecx, [esp + 0x24]
call fcn.0059c2f0
push ebx
push 0
push str.__t_r_n
lea ecx, [esp + 0x1e4]
call fcn.004a2f90
push eax
push 0
lea ecx, [esp + 0x1e0]
call fcn.004076f0
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0x1e8]
call fcn.004d0260
add eax, 1
push eax
lea ecx, [esp + 0x1e0]
call fcn.004076f0
cmp dword [esp + 0x1ec], 0
je 0x520630
cmp dword [esp + 0x1f0], ebp
mov eax, dword [esp + 0x1dc]
jae 0x5205dd
lea eax, [esp + 0x1dc]
push 0x602bb8
push eax
call fcn.005be4ae
add esp, 8
test eax, eax
je 0x520630
cmp dword [esp + 0x1f0], ebp
mov eax, dword [esp + 0x1dc]
jae 0x520606
lea eax, [esp + 0x1dc]
push 0x602bb0
push eax
call fcn.005be4ae
add esp, 8
test eax, eax
je 0x520630
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.00408950
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x25c], bl
je 0x520647
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x520657
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x1f0], ebp
mov byte [esp + 0x25c], 3
jb 0x520678
mov eax, dword [esp + 0x1dc]
push eax
call fcn.005a1b1d
add esp, 4
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.00528a50
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x260], 6
call fcn.0052c990
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx]
mov bl, 7
cmp edi, dword [esp + 0x28]
je 0x52088d
mov edx, dword [edi + 8]
cmp dword [edx + 0x94], 0
je 0x52087b
push 1
push 2
lea ecx, [esp + 0x60]
call fcn.0040a750
cmp edi, dword [esp + 0x28]
mov byte [esp + 0x25c], bl
jne 0x5206d9
call fcn.005bdf65
mov eax, dword [edi + 8]
push 1
add eax, 0x78
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00526300
add esp, 0xc
mov esi, eax
lea edx, [esp + 0x1d8]
push edx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x260], 8
call fcn.00408c00
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 9
jb 0x52071f
mov eax, dword [eax + 4]
jmp 0x520722
add eax, 4
push esi
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00408950
add esp, 8
cmp dword [esp + 0x1f0], ebp
jb 0x520753
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.005a1b1d
add esp, 4
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x1f0], 0xf
mov dword [esp + 0x1ec], 0
mov byte [esp + 0x1dc], 0
mov byte [esp + 0x25c], bl
jb 0x52078b
mov edx, dword [esp + 0x40]
push edx
call fcn.005a1b1d
add esp, 4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x5c]
call fcn.00408c00
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xa
jb 0x5207ab
mov eax, dword [eax + 4]
jmp 0x5207ae
add eax, 4
push eax
call fcn.00510110
add esp, 4
cmp dword [esp + 0x54], ebp
mov esi, eax
mov byte [esp + 0x25c], bl
jb 0x5207d3
mov ecx, dword [esp + 0x40]
push ecx
call fcn.005a1b1d
add esp, 4
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
call fcn.00408c00
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xb
jb 0x5207f3
mov eax, dword [eax + 4]
jmp 0x5207f6
add eax, 4
push 0x63a84c
push esi
push 0x602bac
push 0x63a84c
push eax
lea eax, [esp + 0x16c]
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.0041c7c0
push eax
call fcn.00409270
add esp, 8
cmp dword [esp + 0x54], ebp
jb 0x52084c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x25c], 6
call fcn.00409510
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0xa8], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
cmp edi, dword [esp + 0x28]
jne 0x520886
call fcn.005bdf65
mov edi, dword [edi]
jmp 0x5206a0
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x15c]
call fcn.00408c00
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x25c], 0xc
jb 0x5208b3
mov ecx, dword [eax + 4]
jmp 0x5208b6
lea ecx, [eax + 4]
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5208d0
mov edi, dword [esp + 0x14]
sub eax, esi
push eax
push ecx
mov ecx, edi
call fcn.00408ea0
cmp dword [esp + 0x1f0], ebp
mov dword [esp + 0x38], 1
jb 0x520909
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.005a1b1d
add esp, 4
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x1f4], 0xf
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x24], vtable.BaseLib::TPointerContainer_class_std::list_struct_BaseLib::_tag_ethernet_adapter___class_std::allocator_struct_BaseLib::_tag_ethernet_adapter____.0
call fcn.004159c0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x2c], ebx
je 0x520968
mov esi, dword [eax]
push eax
call fcn.005a1b1d
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x520953
push ecx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x1f4]
mov dword [esp + 0x28], ebx
call fcn.004d0e90
lea ecx, [esp + 0x124]
mov byte [esp + 0x25c], 1
call fcn.00409510
lea eax, [esp + 0x124]
mov esi, vtable.std::ios_base.0
push eax
mov dword [esp + 0x128], esi
call fcn.005d9cc4
add esp, 4
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x25c], 0
call fcn.00409510
lea ecx, [esp + 0x1a4]
push ecx
mov dword [esp + 0x1a8], esi
call fcn.005d9cc4
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x24c
ret