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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00425e40
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp eax, ebx
jle 0x425588
movsx eax, word [esi + 0x14]
movsx ecx, word [esi + 0x10]
sub eax, ecx
mov cx, word [esi + 0x12]
movsx edi, word [esi + 0x16]
movsx edx, word [esi + 0x12]
inc eax
sub edi, edx
mov dword [esp + 0x40], eax
mov ax, word [esi + 0x10]
mov word [esp + 0x2c], ax
mov eax, dword [esi + 0x18]
add eax, 0x10
mov word [esp + 0x2e], cx
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esi + 0x2a4]
mov dx, word [eax]
sub edi, ebp
mov word [esp + 0x34], dx
mov ax, word [eax + 2]
mov word [esp + 0x36], ax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x36]
add edx, ecx
mov ecx, dword [esp + 0x2e]
mov word [esp + 0x18], dx
add eax, ecx
push 0x6d2738
mov word [esp + 0x1e], ax
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x38]
inc edi
push eax
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], edx
call fcn.0047a800
movsx eax, word [eax + 2]
mov ecx, dword [esi + 0x1f8]
sub eax, ebp
mov ebp, dword [esi + 0x2e8]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1fc]
add esp, 0xc
sar ebp, 2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
sub eax, ecx
and ebp, 3
inc eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xbc]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + ebp*4 + 0x54]
mov edx, 1
mov dword [esp + 0x34], edx
mov dword [esi + 0x1f8], eax
mov eax, dword [esp + ebp*4 + 0x34]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + ebp*4 + 0x60]
mov dword [esp + 0x88], edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov edx, dword [esp + ebp*4 + 0x6c]
dec eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x78], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0xbc], edx
mov dword [esi + 0x1fc], ecx
mov dword [esp + ebp*4 + 0x34], eax
mov edx, eax
mov dword [esp + 0x2c], edx
js 0x42556a
cmp edi, ebx
jle 0x42556a
cmp dword [esp + 0x10], ebx
jl 0x42556a
mov ecx, esi
call fcn.00425930
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
jl 0x4254f5
test edi, edi
jle 0x4254f5
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
js 0x4254f5
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x4251c7
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4254f5
push ebx
mov ecx, esi
call fcn.0043d090
mov edi, eax
shl edi, 5
call fcn.00411fa0
add edi, eax
lea ecx, [esi + 0x1f0]
push edi
call fcn.004138f0
test eax, eax
je 0x4251f2
xor ebp, ebp
jmp 0x4254b6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + ebp*4 + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jg 0x425213
mov eax, dword [esp + 0x10]
inc eax
xor ebp, ebp
mov dword [esp + 0x10], eax
jmp 0x4254b6
movsx eax, word [edi]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov eax, dword [0x5ddedc]
mov ecx, dword [eax + edx*4 + 0x30]
movsx eax, word [esi + 0x1e0]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x38], ecx
call dword [edx + 0x10]
mov ebp, eax
test ebp, ebp
jg 0x425272
xor eax, eax
mov ecx, dword [esp + 0x34]
mov al, byte [esi + 0x2eb]
push eax
mov edx, dword [ecx]
movsx eax, byte [esi + 0x1e2]
push eax
movsx eax, word [esi + 0x1e0]
push eax
lea eax, [esp + 0x50]
push eax
call dword [edx + 0x18]
movsx ebp, word [eax + 6]
movsx ecx, word [eax + 2]
sub ebp, ecx
inc ebp
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x4253cd
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x20
jl 0x4252a3
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x24
jl 0x425311
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe6
jl 0x4252c9
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe8
jl 0x425311
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x34
jl 0x4252eb
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x38
jl 0x425311
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe8
jl 0x42531d
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xea
jg 0x42531d
cmp ebx, dword [esi + 0x3a0]
je 0x4253cd
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x20
jl 0x425343
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x24
jl 0x4254b2
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe6
jl 0x42536d
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe8
jl 0x4254b2
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x34
jl 0x425393
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x38
jl 0x4254b2
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe8
jl 0x4253bd
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xea
jle 0x4254b2
mov eax, dword [esp + 0x18]
sub eax, ebp
mov dword [esp + 0x18], eax
jns 0x4254b2
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
push ebp
push edx
push eax
push 0
lea ecx, [esp + 0x5c]
call fcn.004c9320
mov ecx, dword [eax]
mov dword [esi + 0x3a4], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x94]
test eax, eax
mov dword [esi + 0x3a8], edx
jne 0x425405
mov dword [esi + 0x3a0], ebx
mov eax, dword [esi + 0x18]
push 0
push eax
movsx eax, word [edi]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov eax, dword [0x5ddedc]
lea ecx, [eax + edx*4]
call fcn.00411500
mov cl, byte [edi + 2]
shr ecx, 1
test cl, 1
jne 0x4254a5
lea edx, [edi + 0x10]
push 0
push edx
call fcn.004d9150
mov al, byte [edi + 2]
add esp, 8
or al, 2
mov byte [edi + 2], al
movsx eax, word [edi]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov eax, dword [0x5ddedc]
lea ecx, [eax + edx*4]
call fcn.00410540
call fcn.00410560
call fcn.00412010
mov ecx, dword [0x585248]
sub ecx, ebx
lea ebx, [eax + ecx + 1]
call fcn.00412010
mov ecx, eax
mov eax, ebx
cdq
idiv ecx
mov ebx, dword [esp + 0x24]
push 1
mov ecx, esi
push edx
push ebx
call fcn.0043d090
push eax
call fcn.00412f20
mov edx, dword [esi + 8]
add esp, 0xc
and dh, 0xfe
or dh, 2
mov dword [esi + 8], edx
mov eax, dword [esp + 0x94]
test eax, eax
je 0x42552e
jmp 0x4254b6
sub dword [esp + 0x14], ebp
mov eax, dword [esi + 0x1f0]
push 1
and eax, 0x10000
mov ecx, esi
neg eax
sbb eax, eax
and eax, 2
dec eax
add eax, ebx
push eax
call fcn.00427650
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ebx, eax
add ecx, ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
test ebx, ebx
mov dword [esp + 0x1c], ecx
jge 0x425199
mov eax, dword [esp + ebp*4 + 0x84]
mov ebx, dword [esi + 0x1f8]
mov edx, dword [esi + 0x1fc]
add ebx, eax
add edx, eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x1fc], edx
mov dword [esp + 0x2c], eax
mov dword [esp + ebp*4 + 0x34], eax
js 0x42556a
xor ebx, ebx
jmp 0x425172
push edi
lea ecx, [esi + 0x368]
call fcn.00423f40
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x1f8], ecx
mov dword [esi + 0x1fc], edx
mov dword [esi + 0xbc], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret 4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x1f8], ecx
mov dword [esi + 0x1fc], edx
mov dword [esi + 0xbc], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret 4