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

Disassembly:
push 0xffffffffffffffff
push 0x4b61ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x38], esi
cmp dword [esi + 0x44], ebp
ja 0x413088
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
add esp, 0xc0
ret
mov al, byte [esp + 0x17]
push ebp
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00416c80
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov cl, byte [esp + 0x17]
push ebp
mov byte [esp + 0x30], cl
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], ebp
call fcn.00416da0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
lea eax, [esi + 4]
mov byte [esp + 0xc8], 1
mov ebx, eax
mov ecx, ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [ebx]
call dword [edx + 4]
mov eax, dword [esi + 0x58]
mov byte [esp + 0xc8], 2
cmp eax, ebp
ja 0x413199
mov eax, dword [ebx]
mov ecx, ebx
mov byte [esp + 0xc8], 1
call dword [eax + 8]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0xd0], 0
call fcn.00414980
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00416d10
mov edx, dword [esp + 0x30]
push edx
call fcn.004a5c41
mov eax, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0xd0], 0xffffffff
call fcn.00414910
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00416c20
mov eax, dword [esp + 0x24]
push eax
call fcn.004a5c41
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
add esp, 0xc0
ret
cmp dword [esi + 0x59c], eax
jb 0x4131a7
mov dword [esi + 0x59c], ebp
mov ecx, dword [esi + 0x59c]
mov edx, eax
shr edx, 1
cmp ecx, edx
push edi
ja 0x4131f3
lea eax, [esp + 0x14]
lea ecx, [esi + 0x4c]
push eax
call fcn.00415770
mov ecx, dword [eax]
mov eax, dword [esi + 0x59c]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x1c], ecx
jbe 0x413214
lea ecx, [esp + 0x1c]
call fcn.00415b80
mov eax, dword [esi + 0x59c]
inc edi
cmp edi, eax
jb 0x4131d5
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
jmp 0x413220
mov edx, dword [esi + 0x50]
cmp eax, ecx
mov dword [esp + 0x1c], edx
mov edi, eax
jbe 0x413214
lea ecx, [esp + 0x1c]
call fcn.00415ac0
mov eax, dword [esi + 0x59c]
dec edi
cmp edi, eax
ja 0x413200
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
jmp 0x413220
xor ebp, ebp
mov eax, dword [esi + 0x44]
cmp eax, 0xffffffff
je 0x41323a
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
add edi, edx
cmp edi, eax
ja 0x4134ba
mov al, byte [ecx + 0xc]
lea edi, [ecx + 0xc]
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call fcn.004061f0
mov ecx, dword [0x4b9364]
push ecx
push ebp
push edi
lea ecx, [esp + 0x58]
call fcn.00405de0
mov edx, dword [esp + 0x40]
mov byte [esp + 0xcc], 3
mov eax, dword [edx + 0x1c]
lea edi, [edx + 0x1c]
cmp eax, ebp
je 0x4134ff
lea eax, [esp + 0x1b]
lea ecx, [esp + 0x94]
push eax
call fcn.00405400
lea ecx, [esp + 0x13]
mov byte [esp + 0xcc], 4
push ecx
lea ecx, [esp + 0xa8]
call fcn.00414720
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xc4]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], 5
call fcn.00416b80
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcc], 6
call fcn.00414750
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0xd0], 3
call fcn.004061f0
mov edx, dword [esp + 0x28]
mov ebx, dword [edi + 4]
lea ecx, [esp + 0x4c]
mov ebp, dword [edx + 4]
mov dword [edi + 4], 0
mov eax, dword [0x4b9364]
add ebp, 8
push eax
push 0
push ecx
mov ecx, ebp
call fcn.00405de0
lea edx, [esp + 0xb8]
lea ecx, [edi + 8]
push edx
call fcn.00414eb0
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x41345a
lea esi, [eax + 0x1c]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x41343e
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.004061f0
lea ecx, [esp + 0x12]
mov byte [esp + 0xcc], 7
push ecx
lea ecx, [esp + 0x78]
call fcn.00405400
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4b9364]
push ecx
push 0
lea eax, [edx + 0xc]
lea ecx, [esp + 0x6c]
push eax
mov byte [esp + 0xd8], 8
call fcn.00405de0
mov edx, dword [0x4b9364]
lea ecx, [esp + 0x74]
push edx
push 0
push esi
call fcn.00405de0
mov al, byte [esi + 0x10]
mov byte [esp + 0x84], al
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp + 0x14]
mov dl, byte [ecx]
lea ecx, [ebp + 0x10]
mov byte [esp + 0x85], dl
lea edx, [esp + 0x64]
push edx
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.004163a0
test ebx, ebx
jne 0x413404
mov dl, byte [esi + 0x10]
mov eax, dword [esi + 0x18]
xor ecx, ecx
test dl, dl
setne cl
cmp ecx, eax
jne 0x4133ff
mov edx, dword [esi + 0x14]
xor eax, eax
cmp byte [edx], 0
mov ecx, dword [esi + 0x1c]
setne al
cmp eax, ecx
je 0x413404
mov ebx, 1
mov dl, byte [esi + 0x10]
xor ecx, ecx
test dl, dl
mov edx, dword [esi + 0x14]
push 1
setne cl
mov dword [esi + 0x18], ecx
mov cl, byte [edx]
xor eax, eax
mov byte [esp + 0xd0], 3
test cl, cl
setne al
lea ecx, [esp + 0x78]
mov dword [esi + 0x1c], eax
call fcn.004061f0
push 1
lea ecx, [esp + 0x68]
call fcn.004061f0
lea ecx, [esp + 0x14]
call fcn.00417800
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x41333d
mov esi, dword [esp + 0x3c]
test ebx, ebx
jne 0x413477
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x8c]
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00416be0
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x40]
call fcn.00415b80
mov eax, dword [esi + 0x50]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jne 0x413495
mov eax, dword [eax]
mov dword [esp + 0x40], eax
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], 2
call fcn.004061f0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x41321e
xor ebp, ebp
mov eax, dword [ebx]
mov ecx, ebx
mov byte [esp + 0xcc], 1
call dword [eax + 8]
cmp dword [esp + 0x38], ebp
je 0x4137ae
lea eax, [esi + 4]
mov edi, eax
mov ecx, edi
mov dword [esp + 0x20], edi
mov edx, dword [edi]
call dword [edx + 0xc]
mov eax, dword [esp + 0x34]
mov byte [esp + 0xcc], 9
mov ebp, dword [eax]
cmp ebp, eax
mov dword [esp + 0x1c], ebp
je 0x41379f
jmp 0x413536
mov eax, dword [esi + 0x48]
cmp eax, 0xffffffff
je 0x41347b
cmp dword [esp + 0x38], eax
jae 0x41347b
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.00416cb0
jmp 0x41347b
mov ebp, dword [esp + 0x1c]
mov al, byte [ebp + 8]
lea edi, [ebp + 8]
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call fcn.004061f0
mov ecx, dword [0x4b9364]
push ecx
push 0
push edi
lea ecx, [esp + 0x58]
call fcn.00405de0
lea edx, [esp + 0x4c]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
mov byte [esp + 0xd4], 0xa
call fcn.00411ed0
mov edi, dword [eax]
mov eax, dword [esi + 0x50]
cmp edi, eax
je 0x413775
mov cl, byte [esp + 0x12]
push 0
mov byte [esp + 0x98], cl
lea ecx, [esp + 0x98]
call fcn.004061f0
lea edx, [esp + 0x12]
lea ecx, [esp + 0xa4]
push edx
mov byte [esp + 0xd0], 0xb
call fcn.00414720
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0x90]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], 0xc
call fcn.00416b80
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcc], 0xd
call fcn.00414750
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0xd0], 0xa
call fcn.004061f0
mov eax, dword [esp + 0x28]
mov ebx, dword [edi + 0x20]
lea edx, [esp + 0x4c]
mov eax, dword [eax + 4]
mov dword [edi + 0x20], 0
mov ecx, dword [0x4b9364]
lea esi, [eax + 8]
push ecx
push 0
push edx
mov ecx, esi
call fcn.00405de0
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x413754
lea ebp, [esi + 0x10]
lea esi, [eax + 0x1c]
mov al, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.004061f0
lea ecx, [esp + 0x13]
mov byte [esp + 0xcc], 0xe
push ecx
lea ecx, [esp + 0x78]
call fcn.00405400
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4b9364]
push ecx
push 0
lea eax, [edx + 0xc]
lea ecx, [esp + 0x6c]
push eax
mov byte [esp + 0xd8], 0xf
call fcn.00405de0
mov edx, dword [0x4b9364]
lea ecx, [esp + 0x74]
push edx
push 0
push esi
call fcn.00405de0
mov al, byte [esi + 0x10]
mov byte [esp + 0x84], al
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp + 4]
mov dl, byte [ecx]
lea ecx, [esp + 0x64]
mov byte [esp + 0x85], dl
push ecx
lea edx, [esp + 0xb4]
push eax
push edx
mov ecx, ebp
call fcn.004163a0
test ebx, ebx
jne 0x4136fe
mov dl, byte [esi + 0x10]
mov ecx, dword [esi + 0x18]
xor eax, eax
test dl, dl
setne al
cmp eax, ecx
jne 0x4136f9
mov ecx, dword [esi + 0x14]
xor edx, edx
cmp byte [ecx], 0
mov eax, dword [esi + 0x1c]
setne dl
cmp edx, eax
je 0x4136fe
mov ebx, 1
mov cl, byte [esi + 0x10]
xor eax, eax
test cl, cl
mov ecx, dword [esi + 0x14]
push 1
setne al
mov dword [esi + 0x18], eax
mov al, byte [ecx]
xor edx, edx
lea ecx, [esp + 0x78]
test al, al
setne dl
mov dword [esi + 0x1c], edx
mov byte [esp + 0xd0], 0xa
call fcn.004061f0
push 1
lea ecx, [esp + 0x68]
call fcn.004061f0
lea ecx, [esp + 0x14]
call fcn.00417800
mov ecx, dword [edi + 0x28]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x413643
mov ebp, dword [esp + 0x1c]
test ebx, ebx
jne 0x413771
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xb8]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00416be0
mov esi, dword [esp + 0x3c]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0xd0], 9
call fcn.004061f0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jne 0x413532
mov edi, dword [esp + 0x20]
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0xcc], 1
call dword [edx + 0x10]
mov eax, dword [esp + 0x34]
mov byte [esp + 0xcc], 0
mov edi, eax
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x20], ecx
je 0x4137f4
lea eax, [esp + 0x44]
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.00414990
mov ecx, dword [eax]
lea edx, [esp + 0x8c]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00419a20
cmp dword [esp + 0x20], edi
jne 0x4137c6
mov eax, dword [esp + 0x34]
push eax
call fcn.004a5c41
mov eax, dword [esp + 0x2c]
add esp, 4
mov ebp, dword [eax]
cmp ebp, eax
mov dword [esp + 0x14], ebp
je 0x41391f
mov bl, 0x10
jmp 0x413817
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
lea esi, [ebp + 8]
mov ecx, edi
lea eax, [esi + 0x10]
push eax
push esi
call fcn.00412ec0
test eax, eax
jne 0x413908
lea ecx, [esp + 0x12]
lea edx, [esp + 0x13]
xor ebp, ebp
push ecx
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call fcn.004142a0
push esi
lea ecx, [esp + 0x68]
mov byte [esp + 0xd0], bl
call fcn.00405420
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x74]
push eax
mov byte [esp + 0xd0], 0x11
call fcn.00414b00
lea ecx, [esp + 0x64]
lea edx, [esp + 0x8c]
push ecx
push edx
lea ecx, [edi + 0x4c]
mov byte [esp + 0xd4], 0x12
call fcn.00415780
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x44]
mov edx, dword [eax + 4]
lea eax, [esp + 0x48]
push eax
push ecx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x50], edx
call fcn.00416b40
mov edi, dword [eax]
lea ecx, [esp + 0x64]
mov byte [esp + 0xcc], bl
mov edx, dword [eax + 4]
mov dword [esp + 0xbc], edx
call fcn.00412510
lea ecx, [esp + 0x54]
mov byte [esp + 0xcc], 0
call fcn.004143a0
mov dword [edi + 0x20], 1
mov esi, dword [esi + 4]
cmp esi, ebp
jne 0x4138f6
mov esi, 0x4b9360
push esi
push str.error:_bkgrnp_store_someone:__s
call fcn.0042feb0
mov ebp, dword [esp + 0x1c]
add esp, 8
mov ebp, dword [ebp]
mov eax, dword [esp + 0x28]
cmp ebp, eax
mov dword [esp + 0x14], ebp
jne 0x413813
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x59c]
add edx, ecx
mov ebx, eax
mov dword [esi + 0x59c], edx
mov dword [esp + 0xcc], 0xffffffff
mov edi, dword [ebx]
cmp edi, ebx
je 0x41397b
mov esi, edi
mov edi, dword [edi]
push 0
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
lea ecx, [esi + 8]
call fcn.0041b760
push esi
call fcn.004a5c41
mov ecx, dword [esp + 0x30]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esp + 0x2c], ecx
jne 0x413944
mov eax, dword [esp + 0x28]
push eax
call fcn.004a5c41
mov ecx, dword [esp + 0xc8]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret