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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e308
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x45c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
cmp dword [eax + 4], ebx
jbe 0x415dd5
lea ebx, [ebx]
mov eax, dword [eax]
mov edi, dword [eax + ebx*4]
cmp dword [edi + 0x7c], 0
lea ebx, [edi + 0x78]
mov dword [ebp - 0x38], edi
jne 0x415a6e
cmp dword [ebx + 8], 0
jne 0x415a6e
cmp byte [ebx + 2], 0
jne 0x415a52
cmp byte [ebx], 0
jne 0x415a6e
cmp byte [ebx + 1], 0
jne 0x415a6e
cmp dword [ebx + 0x1c], 0
jne 0x415a6e
cmp dword [ebx + 0x28], 0
jne 0x415a6e
cmp dword [ebx + 0xc], 0
jl 0x415dc2
cmp dword [esi + 4], 0
jne 0x415ad9
xor edi, edi
cmp word [ecx], di
je 0x415a88
jmp 0x415a80
inc edi
cmp word [ecx + edi*2], 0
jne 0x415a80
push edi
mov ecx, esi
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x2c]
push ecx
call sub.msvcrt.dll_memcpy
add dword [esi + 4], edi
add esp, 0xc
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415abe
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov edi, dword [ebp - 0x38]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
cmp dword [ebp - 0x30], 0
je 0x415b35
push dword [edi + 0x1c]
mov ecx, esi
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
mov eax, dword [edi + 0x1c]
lea eax, [eax*2 + 2]
push eax
push dword [edi + 0x18]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x1c]
add esp, 0xc
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415b1d
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
mov edx, ebx
mov ecx, esi
call fcn.00415560
cmp dword [ebx + 0xc], 0
jl 0x415dbf
push 0x4530b4
mov edx, 0x49
lea ecx, [ebp - 0x54]
call fcn.0041bb50
add esp, 4
mov edi, eax
mov dword [ebp - 4], 0
mov ecx, esi
push dword [edi + 4]
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
mov eax, dword [edi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [edi]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 4]
add esp, 0xc
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415ba3
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x54]
mov dword [esi + 4], ecx
call fcn.00449b03
mov ecx, dword [ebx + 0xc]
add esp, 4
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 0x3c], ecx
jne 0x415c5e
mov edx, 0xbcb
lea ecx, [ebp - 0x1c]
call fcn.00416920
mov edi, eax
mov dword [ebp - 4], 1
mov ecx, esi
push dword [edi + 4]
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
mov eax, dword [edi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [edi]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 4]
add esp, 0xc
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415c2f
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x1c]
mov dword [esi + 4], ecx
call fcn.00449b03
add esp, 4
jmp 0x415dbf
test ecx, ecx
jns 0x415c69
mov edx, 0x45308c
jmp 0x415c75
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x10]
lea ecx, [ebp - 0x78]
call fcn.004158f0
push eax
mov edx, 0xbc9
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.004165f0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, esi
push dword [edi + 4]
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
mov eax, dword [edi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [edi]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 4]
add esp, 0xc
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415cd8
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x6c]
mov dword [esi + 4], ecx
call fcn.00449b03
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x78]
call fcn.00449b03
mov ecx, dword [ebx + 0x3c]
add esp, 8
test ecx, ecx
jns 0x415d18
mov edx, 0x45308c
jmp 0x415d24
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x10]
lea ecx, [ebp - 0x60]
call fcn.004158f0
push eax
mov edx, 0xbca
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.004165f0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 5
mov ecx, esi
push dword [edi + 4]
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
mov eax, dword [edi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [edi]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 4]
add esp, 0xc
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415d8a
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x84]
mov dword [esi + 4], ecx
call fcn.00449b03
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x60]
call fcn.00449b03
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x48]
inc ebx
mov dword [ebp - 0x30], ebx
cmp ebx, dword [eax + 4]
jb 0x415a30
cmp dword [eax + 0x3c], 0
mov ebx, dword [ebp + 0x10]
jge 0x415de6
test ebx, ebx
je 0x4161c9
xor edi, edi
cmp word [ecx], di
je 0x415df8
lea ecx, [ecx]
inc edi
cmp word [ecx + edi*2], 0
jne 0x415df0
push edi
mov ecx, esi
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x2c]
push ecx
call sub.msvcrt.dll_memcpy
add dword [esi + 4], edi
add esp, 0xc
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415e2e
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov edi, dword [ebp - 0x48]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
cmp dword [edi + 4], edx
je 0x415ea4
push dword [edi + 0x28]
mov ecx, esi
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea ecx, [eax + ecx*2]
mov eax, dword [edi + 0x28]
lea eax, [eax*2 + 2]
push eax
push dword [edi + 0x24]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x28]
add esp, 0xc
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jne 0x415e8c
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
cmp dword [edi + 0x3c], 0
jge 0x415f17
cmp ebx, 1
je 0x415f17
lea ecx, [ebp - 0x44]
cmp ebx, 0x8007000e
jne 0x415ec6
mov edx, 0xbb8
call fcn.00416920
jmp 0x415ecd
mov edx, ebx
call fcn.0041e390
mov dword [ebp - 4], 0xd
mov ecx, esi
push dword [ebp - 0x40]
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x40]
lea ecx, [eax + ecx*2]
lea eax, [edx*2 + 2]
push eax
push dword [ebp - 0x44]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x40]
add dword [esi + 4], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x44]
call fcn.00449b03
add esp, 0x10
jmp 0x416198
push 8
mov edi, 0xbbd
call fcn.00449b46
mov ebx, eax
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x28], ebx
add esp, 4
mov dword [ebp - 0x20], 3
mov word [ebx], ax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 4], 6
cmp byte [ecx + 0x21], al
je 0x415f57
mov edi, 0xbbe
jmp 0x415fef
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
js 0x415fef
mov eax, dword [ebp - 0x34]
mov edi, 0xbc9
mov dword [ebp - 0x30], edi
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x60]
mov edx, dword [eax + 0x10]
call fcn.004158f0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
cmp eax, ecx
je 0x415fe0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp eax, 3
jbe 0x415fc7
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
push ebx
mov edi, eax
call fcn.00449b03
mov eax, dword [ebp - 0x38]
mov ebx, edi
mov edi, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp - 4], 6
push dword [ebp - 0x60]
call fcn.00449b03
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov edx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004165f0
push 2
mov byte [ebp - 4], 8
call fcn.00449b46
mov cx, word [0x453090]
add esp, 8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov word [eax], cx
mov byte [ebp - 4], 9
xor ebx, ebx
jmp 0x416040
inc ebx
cmp word [ebx*2 + 0x4530c8], 0
jne 0x416040
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
lea ecx, [ebx*2 + 2]
mov dword [ebp - 0x50], ebx
push ecx
mov edi, eax
mov dword [ebp - 0x4c], ebx
push 0x4530c8
push edi
mov dword [ebp - 0x54], edi
call sub.msvcrt.dll_memcpy
add esp, 0x10
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00421920
push edi
call fcn.00449b03
mov byte [ebp - 4], 8
push dword [ebp - 0x44]
call fcn.00449b03
push 2
call fcn.00449b46
mov cx, word [0x453090]
add esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov word [eax], cx
mov byte [ebp - 4], 0xb
xor ebx, ebx
jmp 0x4160e0
inc ebx
cmp word [ebx*2 + 0x4530d0], 0
jne 0x4160e0
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
lea ecx, [ebx*2 + 2]
mov dword [ebp - 0x50], ebx
push ecx
mov edi, eax
mov dword [ebp - 0x4c], ebx
push 0x4530d0
push edi
mov dword [ebp - 0x54], edi
call sub.msvcrt.dll_memcpy
add esp, 0x10
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00421920
push edi
call fcn.00449b03
mov byte [ebp - 4], 8
push dword [ebp - 0x44]
call fcn.00449b03
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.00421690
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + ecx*2]
lea eax, [edx*2 + 2]
push eax
push dword [ebp - 0x1c]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
add dword [esi + 4], eax
call fcn.00449b03
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x28]
call fcn.00449b03
mov edi, dword [ebp - 0x48]
add esp, 0x14
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jne 0x4161a7
mov ecx, esi
call fcn.00421600
mov ecx, dword [esi + 4]
mov edx, 0xa
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
lea edx, [edi + 0x30]
mov dword [esi + 4], ecx
mov ecx, esi
call fcn.00415560
mov eax, dword [esi + 4]
test eax, eax
je 0x4161e4
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0xa
jne 0x4161e4
dec eax
xor edx, edx
mov dword [esi + 4], eax
mov word [ecx + eax*2], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449a40
mov esp, ebp
pop ebp
ret