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

Disassembly:
sub esp, 0x16c
push ebx
push ebp
mov ebp, dword [esp + 0x180]
push esi
mov esi, dword [esp + 0x180]
mov edx, dword [ebp + 0x510]
mov ebx, dword [ebp + 0x504]
mov eax, dword [esi + 0x40]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
lea ecx, [eax + 0x720]
mov eax, dword [eax + 0xb20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x188]
mov dword [esp + 0x30], ecx
test eax, eax
je 0x44150d
push edi
xor edi, edi
test ebx, ebx
jle 0x441081
mov ebp, eax
lea esp, [esp]
mov ecx, dword [ebp + edi*4]
mov esi, ecx
mov eax, dword [edx + 0x340]
and esi, 0x7fff
dec eax
cmp eax, 3
ja case.default.0x441038
jmp dword [eax*4 + 0x44154c]
sar esi, 2
jmp case.default.0x441038
sar esi, 3
jmp case.default.0x441038
mov eax, 0x2aaaaaab
imul esi
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 0x10]
jmp case.default.0x441038
sar esi, 4
and ecx, 0x8000
or ecx, esi
mov dword [ebp + edi*4], ecx
inc edi
cmp edi, ebx
jl 0x441020
mov ebp, dword [esp + 0x188]
mov eax, dword [esp + 0x18c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
cmp ebx, 2
jle 0x4411e9
mov esi, dword [esp + 0x18c]
lea eax, [edx + 0x34c]
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x14], eax
add ecx, 0x30c
lea eax, [esp + 0x78]
mov dword [esp + 0x28], ecx
sub eax, esi
lea ebp, [esi + 8]
add ebx, 0xfffffffe
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
lea ecx, [ecx]
mov eax, dword [ecx + 0xfc]
mov ecx, dword [ecx]
mov edi, dword [esi + ecx*4]
and edi, 0x7fff
mov ebx, dword [edx + eax*4 + 0x344]
lea eax, [esi + eax*4]
mov dword [esp + 0x30], eax
lea edx, [esi + ecx*4]
mov eax, dword [eax]
and eax, 0x7fff
mov dword [esp + 0x2c], edx
sub edi, eax
mov dword [esp + 0x1c], eax
mov eax, edi
cdq
mov esi, eax
mov eax, dword [esp + 0x14]
xor esi, edx
sub esi, edx
mov eax, dword [eax]
sub eax, ebx
imul esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 0x344]
mov eax, esi
sub ecx, ebx
cdq
idiv ecx
test edi, edi
mov edi, dword [esp + 0x1c]
jns 0x441137
mov esi, edi
sub esi, eax
jmp 0x44113a
lea esi, [eax + edi]
mov ecx, dword [ebp]
test ecx, 0x8000
jne 0x44119e
cmp esi, ecx
je 0x44119e
mov eax, dword [esp + 0x188]
mov edx, dword [eax + 0x50c]
sub edx, esi
cmp edx, esi
jl 0x44115e
mov edx, esi
sub ecx, esi
jns 0x44117b
mov eax, edx
neg eax
cmp ecx, eax
jge 0x441171
sub edx, ecx
lea ecx, [edx - 1]
jmp 0x441185
lea eax, [ecx + ecx]
or ecx, 0xffffffff
sub ecx, eax
jmp 0x441185
cmp ecx, edx
jl 0x441183
add ecx, edx
jmp 0x441185
add ecx, ecx
mov eax, dword [esp + 0x24]
mov dword [eax + ebp], ecx
mov eax, dword [esp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
and dword [eax], 0x7fff
jmp 0x4411b2
mov eax, dword [esp + 0x24]
or esi, 0x8000
mov dword [ebp], esi
mov dword [eax + ebp], 0
mov ecx, dword [esp + 0x28]
add ebp, 4
add dword [esp + 0x14], 4
add ecx, 4
dec dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18c]
mov dword [esp + 0x28], ecx
jne 0x4410d0
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x188]
mov ebx, dword [esp + 0x180]
push 1
push 1
push ebx
call fcn.00446820
mov ecx, dword [ebp + 0x50c]
add esp, 0xc
inc dword [ebp + 0x51c]
xor edx, edx
dec ecx
mov eax, ecx
je 0x441215
inc edx
shr eax, 1
jne 0x441210
lea eax, [edx + edx]
add dword [ebp + 0x518], eax
xor eax, eax
test ecx, ecx
je 0x441229
inc eax
shr ecx, 1
jne 0x441224
push eax
push esi
push ebx
call fcn.00446820
mov eax, dword [ebp + 0x50c]
add esp, 0xc
mov ecx, 0
dec eax
je 0x441247
inc ecx
shr eax, 1
jne 0x441242
push ecx
push edi
push ebx
call fcn.00446820
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 2
cmp dword [eax], 0
jle 0x44142e
lea ecx, [eax + 4]
mov dword [esp + 0x24], ecx
mov edi, dword [ecx]
mov edx, 1
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov ecx, dword [eax + edi*4 + 0xc0]
mov ebp, dword [eax + edi*4 + 0x80]
shl edx, cl
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x4413a9
xor ecx, ecx
test edx, edx
jle 0x441326
lea esi, [edi + 0xa]
mov edi, dword [esp + 0x34]
shl esi, 5
add esi, eax
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
jns 0x441310
mov dword [esp + ecx*4 + 0x58], 1
jmp 0x44131a
mov eax, dword [edi + eax*4]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x58], eax
inc ecx
add esi, 4
cmp ecx, edx
jl 0x441300
mov edi, dword [esp + 0x18]
xor esi, esi
test ebp, ebp
jle 0x441375
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x78]
lea edi, [edi + eax*4]
xor eax, eax
test edx, edx
jle 0x441351
mov ecx, dword [edi]
nop
cmp ecx, dword [esp + eax*4 + 0x58]
jl 0x44134d
inc eax
cmp eax, edx
jl 0x441340
jmp 0x441351
mov dword [esp + esi*4 + 0x38], eax
mov eax, dword [esp + esi*4 + 0x38]
mov ecx, ebx
add ebx, dword [esp + 0x2c]
inc esi
shl eax, cl
add edi, 4
mov ecx, dword [esp + 0x1c]
or ecx, eax
mov dword [esp + 0x1c], ecx
cmp esi, ebp
jl 0x441337
mov edi, dword [esp + 0x18]
jmp 0x441377
mov ecx, ebx
mov eax, dword [esp + 0x10]
push dword [esp + 0x180]
push ecx
imul eax, dword [eax + edi*4 + 0x100], 0x2c
add eax, dword [esp + 0x28]
push eax
call fcn.0043f6e0
mov ecx, dword [esp + 0x194]
add esp, 0xc
add dword [ecx + 0x514], eax
mov eax, dword [esp + 0x10]
xor esi, esi
test ebp, ebp
jle 0x44140e
mov eax, dword [esp + 0x14]
lea ebx, [edi*8 + 0x50]
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x78]
lea edi, [edi + eax*4]
mov eax, dword [esp + esi*4 + 0x38]
add eax, ebx
mov eax, dword [ecx + eax*4]
test eax, eax
js 0x441402
mov ecx, dword [edi]
imul eax, eax, 0x2c
add eax, dword [esp + 0x20]
cmp ecx, dword [eax + 4]
jge 0x4413fe
push dword [esp + 0x180]
push ecx
push eax
call fcn.0043f6e0
mov ecx, dword [esp + 0x194]
add esp, 0xc
add dword [ecx + 0x518], eax
mov ecx, dword [esp + 0x10]
inc esi
add edi, 4
cmp esi, ebp
jl 0x4413c5
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
inc esi
add dword [esp + 0x14], ebp
add ecx, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
cmp esi, dword [eax]
jl 0x441276
mov ebx, dword [eax + 0x340]
xor edi, edi
mov ecx, dword [esp + 0x18c]
mov ebp, 1
mov eax, dword [esp + 0x188]
mov dword [esp + 0x20], edi
imul ebx, dword [ecx]
cmp dword [eax + 0x504], ebp
jle 0x4414c4
add eax, 0x108
mov dword [esp + 0x18], eax
mov edx, dword [eax]
mov eax, dword [ecx + edx*4]
mov ecx, eax
and ecx, 0x7fff
cmp ecx, eax
jne 0x4414a2
mov eax, dword [esp + 0x10]
push dword [esp + 0x190]
mov esi, dword [eax + 0x340]
mov edi, dword [eax + edx*4 + 0x344]
imul esi, ecx
push esi
push ebx
push edi
push dword [esp + 0x30]
call fcn.00441f10
add esp, 0x14
mov dword [esp + 0x20], edi
mov ebx, esi
mov ecx, dword [esp + 0x188]
inc ebp
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
cmp ebp, dword [ecx + 0x504]
mov ecx, dword [esp + 0x18c]
jl 0x441461
mov ecx, dword [esp + 0x184]
mov eax, dword [ecx + 0x24]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jge 0x4414f7
jmp 0x4414e0
mov eax, dword [esp + 0x190]
mov dword [eax + edi*4], ebx
inc edi
mov eax, dword [ecx + 0x24]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jl 0x4414e0
inc dword [0x5001b0]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
push 1
push 0
push dword [esp + 0x184]
call fcn.00446820
mov eax, dword [esi + 0x24]
cdq
sub eax, edx
sar eax, 1
shl eax, 2
push eax
push 0
push dword [esp + 0x1a0]
call sub.MSVCRT.dll_memset
inc dword [0x5001b0]
add esp, 0x18
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret