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

Disassembly:
mov ecx, dword [0x2267828]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x46b05c
sub esp, 0x9c
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x98], ecx
lea edx, [0xcf2260]
mov dword [esp], edx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 4], ebx
lea ebp, [esp + 0x94]
mov dword [esp + 8], ebp
call fcn.00411ab0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x46a9fd
lea eax, [0xcf2260]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
lea ecx, [esp + 0x94]
mov dword [esp + 8], ecx
call fcn.00411e30
mov eax, dword [esp + 0xc]
test byte [eax], al
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
cmp eax, ecx
je 0x46a9ee
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
movzx ebp, byte [eax + 0xf]
and ebp, 0x1f
xchg ebp, eax
cmp al, dl
xchg ebp, eax
jne 0x46a9df
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], dl
mov dword [esp], ecx
call fcn.00469330
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x90], ecx
mov edx, dword [esp + 0xa4]
mov dword [esp], edx
call fcn.00469330
mov eax, dword [esp + 0x44]
cmp dword [esp + 8], eax
jne 0x46a9d0
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46a9d0
mov ebp, dword [esp + 0xa0]
movzx esi, byte [ebp + 0xc]
xchg esi, eax
test al, 1
xchg esi, eax
jne 0x46a461
xor esi, esi
jmp 0x46a4c0
movzx esi, byte [ebp + 0xf]
and esi, 0x1f
cmp esi, 0x14
ja 0x46a495
cmp esi, 0x12
ja 0x46a486
cmp esi, 0x11
jne 0x46a47c
lea esi, [ebp + 0x2c]
jmp 0x46a4c0
cmp esi, 0x12
jne 0x46a4bd
lea esi, [ebp + 0x28]
jmp 0x46a4c0
cmp esi, 0x13
jne 0x46a490
lea esi, [ebp + 0x24]
jmp 0x46a4c0
lea esi, [ebp + 0x30]
jmp 0x46a4c0
cmp esi, 0x16
ja 0x46a4a9
cmp esi, 0x15
jne 0x46a4a4
lea esi, [ebp + 0x38]
jmp 0x46a4c0
lea esi, [ebp + 0x24]
jmp 0x46a4c0
cmp esi, 0x17
jne 0x46a4b3
lea esi, [ebp + 0x24]
jmp 0x46a4c0
cmp esi, 0x19
jne 0x46a4bd
lea esi, [ebp + 0x30]
jmp 0x46a4c0
lea esi, [ebp + 0x20]
mov edi, dword [esp + 0xa4]
movzx eax, byte [edi + 0xc]
test al, 1
jne 0x46a4d4
xor eax, eax
jmp 0x46a533
movzx eax, byte [edi + 0xf]
and eax, 0x1f
cmp eax, 0x14
ja 0x46a508
cmp eax, 0x12
ja 0x46a4f9
cmp eax, 0x11
jne 0x46a4ef
lea eax, [edi + 0x2c]
jmp 0x46a533
cmp eax, 0x12
jne 0x46a530
lea eax, [edi + 0x28]
jmp 0x46a533
cmp eax, 0x13
jne 0x46a503
lea eax, [edi + 0x24]
jmp 0x46a533
lea eax, [edi + 0x30]
jmp 0x46a533
cmp eax, 0x16
ja 0x46a51c
cmp eax, 0x15
jne 0x46a517
lea eax, [edi + 0x38]
jmp 0x46a533
lea eax, [edi + 0x24]
jmp 0x46a533
cmp eax, 0x17
jne 0x46a526
lea eax, [edi + 0x24]
jmp 0x46a533
cmp eax, 0x19
jne 0x46a530
lea eax, [edi + 0x30]
jmp 0x46a533
lea eax, [edi + 0x20]
test esi, esi
jne 0x46a543
test eax, eax
je 0x46a5e2
test esi, esi
je 0x46a547
test eax, eax
jne 0x46a556
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov dword [esp + 0x60], eax
mov eax, dword [esi]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004694f0
mov eax, dword [esp + 8]
mov dword [esp], eax
call fcn.00402060
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004694f0
mov eax, dword [esp + 8]
mov dword [esp], eax
call fcn.00402060
mov eax, dword [esp + 0x28]
cmp dword [esp + 8], eax
jne 0x46a9c1
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46a9c1
mov ebp, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
movzx esi, byte [esp + 0x16]
xchg esi, eax
test al, al
xchg esi, eax
je 0x46aa0c
xchg esi, eax
cmp al, 0x10
xchg esi, eax
jbe 0x46a9b2
xchg esi, eax
cmp al, 0x15
xchg esi, eax
ja 0x46a87c
xchg esi, eax
cmp al, 0x12
xchg esi, eax
jbe 0x46a7df
xchg esi, eax
cmp al, 0x13
xchg esi, eax
jne 0x46a6d7
movzx esi, word [ebp + 0x22]
cmp word [edi + 0x22], si
jne 0x46a6c8
movzx esi, word [ebp + 0x20]
movzx eax, word [edi + 0x20]
cmp ax, si
jne 0x46a6c8
movzx ecx, byte [ebp + 0xc]
test cl, 1
je 0x46a64c
mov ecx, 0x34
jmp 0x46a651
mov ecx, 0x24
test si, si
jne 0x46a65c
xor edx, edx
xor esi, esi
jmp 0x46a66e
movzx edx, si
lea esi, [ecx + ebp]
cmp edx, 0x10000
ja 0x46b051
movzx ecx, byte [edi + 0xc]
test cl, 1
je 0x46a67e
mov ecx, 0x34
jmp 0x46a683
mov ecx, 0x24
test ax, ax
jne 0x46a68e
xor eax, eax
xor ecx, ecx
jmp 0x46a69e
movzx eax, ax
add ecx, edi
cmp eax, 0x10000
ja 0x46b045
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
jmp 0x46ae96
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
xchg esi, eax
cmp al, 0x14
xchg esi, eax
jne 0x46a777
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call fcn.00402060
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 0x20]
mov ebx, dword [esp + 4]
mov dword [esp + 0x90], ebx
mov dword [esp], edx
call fcn.00402060
mov eax, dword [esp + 0x44]
cmp dword [esp + 8], eax
jne 0x46a768
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46a768
mov edx, dword [esp + 0xa0]
mov ebx, dword [edx + 0x28]
mov ebp, dword [esp + 0xa4]
cmp dword [ebp + 0x28], ebx
jne 0x46a759
mov dword [esp + 0x44], ebx
xor eax, eax
jmp 0x46ac75
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
call fcn.0046a310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x46a7a1
xor eax, eax
jmp 0x46a7d1
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx + 0x24]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
call fcn.0046a310
movzx eax, byte [esp + 0xc]
mov byte [esp + 0xac], al
add esp, 0x9c
ret
xchg esi, eax
cmp al, 0x11
xchg esi, eax
je 0x46a82d
xchg esi, eax
cmp al, 0x12
xchg esi, eax
jne 0x46aa0c
mov eax, dword [ebp + 0x24]
cmp dword [edi + 0x24], eax
je 0x46a7fd
xor eax, eax
jmp 0x46a81f
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
call fcn.0046a310
movzx eax, byte [esp + 0xc]
mov byte [esp + 0xac], al
add esp, 0x9c
ret
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
call fcn.0046a310
movzx eax, byte [esp + 0xc]
test al, al
je 0x46a86c
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0xa4]
cmp dword [ecx + 0x28], eax
sete al
jmp 0x46a86e
xor eax, eax
mov byte [esp + 0xac], al
add esp, 0x9c
ret
xchg esi, eax
cmp al, 0x17
xchg esi, eax
ja 0x46a8ea
xchg esi, eax
cmp al, 0x16
xchg esi, eax
jne 0x46a8ba
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
call fcn.0046a310
movzx eax, byte [esp + 0xc]
mov byte [esp + 0xac], al
add esp, 0x9c
ret
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
call fcn.0046a310
movzx eax, byte [esp + 0xc]
mov byte [esp + 0xac], al
add esp, 0x9c
ret
xchg esi, eax
cmp al, 0x18
xchg esi, eax
je 0x46a9a3
xchg esi, eax
cmp al, 0x19
xchg esi, eax
jne 0x46a99c
mov eax, dword [edi + 0x28]
cmp dword [ebp + 0x28], eax
jne 0x46a98d
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call fcn.00402060
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 0x20]
mov ebx, dword [esp + 4]
mov dword [esp + 0x90], ebx
mov dword [esp], edx
call fcn.00402060
mov eax, dword [esp + 0x44]
cmp dword [esp + 8], eax
jne 0x46a97e
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46a97e
mov edx, dword [esp + 0xa0]
mov ebx, dword [edx + 0x28]
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 0xa4]
xor eax, eax
jmp 0x46aa78
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
xchg esi, eax
cmp al, 0x1a
xchg esi, eax
jne 0x46aa0c
mov byte [esp + 0xac], 1
add esp, 0x9c
ret
mov byte [esp + 0xac], 1
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 1
add esp, 0x9c
ret
mov byte [esp + 0xac], 1
add esp, 0x9c
ret
call fcn.00442040
lea eax, [0xdfaff8]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.004428c0
mov dword [esp + 4], 0
movzx eax, byte [esp + 0x17]
and eax, 0x1f
mov dword [esp], eax
call fcn.004425a0
call fcn.00442250
call fcn.004420a0
lea eax, [0xdf9859]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.00440250
mov esi, dword [esp + 0x2c]
lea eax, [esi + 1]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
cmp eax, ebx
jge 0x46ac43
mov ecx, dword [edx + 0x28]
cmp eax, ecx
jae 0x46ac57
mov ecx, dword [ebp + 0x28]
lea esi, [eax + eax*2]
cmp eax, ecx
jae 0x46ac52
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x8c], eax
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x88], ecx
mov ebx, dword [eax + esi*4]
mov dword [esp], ebx
call fcn.00402060
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x88]
mov ebx, dword [edx + ecx*4]
mov ebp, dword [esp + 4]
mov dword [esp + 0x90], ebp
mov dword [esp], ebx
call fcn.00402060
mov eax, dword [esp + 0x3c]
cmp dword [esp + 8], eax
jne 0x46ac34
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46ac34
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + eax*4 + 4]
mov ebx, dword [esp + 0x88]
mov ebp, dword [ebx + eax*4 + 4]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov edx, dword [esp + 0xa8]
mov dword [esp + 8], edx
call fcn.0046a310
movzx eax, byte [esp + 0xc]
test al, al
je 0x46ac25
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + eax*4]
mov dword [esp], edx
call fcn.00402120
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x88]
mov ebx, dword [edx + ecx*4]
mov ebp, dword [esp + 4]
mov dword [esp + 0x90], ebp
mov dword [esp], ebx
call fcn.00402120
mov eax, dword [esp + 0x3c]
cmp dword [esp + 8], eax
jne 0x46ac16
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46ac16
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [ebx + edx*4 + 8]
mov esi, dword [esp + 0x88]
lea edi, [esi + edx*4 + 8]
cmp dword [edi], ebp
jne 0x46ac07
mov ebx, dword [ebx + edx*4]
mov edx, dword [esi + edx*4]
movzx ebx, byte [ebx]
movzx edx, byte [edx]
test bl, 8
setne bl
test dl, 8
setne dl
cmp dl, bl
je 0x46aa5f
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 1
add esp, 0x9c
ret
call fcn.004754c0
call fcn.004754c0
mov esi, dword [esp + 0x30]
lea eax, [esi + 1]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
cmp eax, ebx
jge 0x46ae49
mov ecx, dword [edx + 0x28]
cmp eax, ecx
jae 0x46ae5d
mov esi, dword [edx + 0x24]
mov ecx, dword [ebp + 0x28]
lea edi, [esi + eax*8]
cmp eax, ecx
jae 0x46ae58
mov dword [esp + 0x84], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], edi
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x80], ecx
lea edx, [ecx + eax*8]
mov dword [esp + 0x64], edx
lea ebx, [esi + eax*8]
mov ebx, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], ebx
call fcn.004694f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x80]
lea edx, [ecx + eax*8]
mov edx, dword [edx]
mov ebx, dword [esp + 8]
mov dword [esp + 0x7c], ebx
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.004694f0
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call fcn.00402060
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x78]
mov dword [esp], edx
call fcn.00402060
mov eax, dword [esp + 0x40]
cmp dword [esp + 8], eax
jne 0x46ae3a
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46ae3a
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00469cc0
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x90], ecx
mov edx, dword [esp + 0x78]
mov dword [esp], edx
call fcn.00469cc0
mov eax, dword [esp + 0x40]
cmp dword [esp + 8], eax
jne 0x46ae2b
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00406eb0
movzx eax, byte [esp + 0xc]
test al, al
je 0x46ae2b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x84]
lea ecx, [ecx + eax*8 + 4]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004697b0
mov eax, dword [esp + 8]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
lea edx, [edx + ecx*8 + 4]
mov edx, dword [edx]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.004697b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
call fcn.0046a310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x46ac5c
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 1
add esp, 0x9c
ret
call fcn.004754c0
call fcn.004754c0
mov eax, dword [esp + 0x38]
inc eax
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov ecx, ebp
mov ebp, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
cmp edi, edx
jge 0x46aed4
mov ebp, dword [esi + edi*4]
cmp edi, eax
jae 0x46b03c
mov eax, dword [ecx + edi*4]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.0046a310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x46ae62
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
movzx esi, word [ebp + 0x22]
and esi, 0x7fff
nop
test si, si
jne 0x46aeea
xor esi, esi
xor ebp, ebp
jmp 0x46af33
movzx edi, byte [ebp + 0xc]
xchg edi, eax
test al, 1
xchg edi, eax
je 0x46aefc
mov eax, 0x34
jmp 0x46af01
mov eax, 0x24
movzx edi, word [ebp + 0x20]
add esi, edi
movzx edx, si
add ebp, eax
cmp edx, 0x20000
ja 0x46b032
movzx eax, di
cmp eax, edx
ja 0x46b02b
sub edx, eax
mov esi, edx
neg edx
shl eax, 2
sar edx, 0x1f
and eax, edx
add ebp, eax
mov edi, dword [esp + 0xa4]
movzx eax, word [edi + 0x22]
and eax, 0x7fff
nop
test ax, ax
jne 0x46af4f
xor ecx, ecx
xor edx, edx
jmp 0x46af95
movzx ecx, byte [edi + 0xc]
test cl, 1
je 0x46af5f
mov ecx, 0x34
jmp 0x46af64
mov ecx, 0x24
movzx edx, word [edi + 0x20]
add eax, edx
movzx eax, ax
add edi, ecx
cmp eax, 0x20000
ja 0x46b01f
movzx edx, dx
cmp edx, eax
ja 0x46b016
sub eax, edx
mov ecx, eax
neg eax
shl edx, 2
sar eax, 0x1f
and edx, eax
add edx, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x54], ebp
xor eax, eax
jmp 0x46afc7
mov edi, dword [esp + 0x34]
lea eax, [edi + 1]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
cmp eax, esi
jge 0x46b002
mov edi, dword [ebp + eax*4]
cmp eax, ecx
jae 0x46b011
mov dword [esp + 0x34], eax
mov ecx, dword [edx + eax*4]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0046a310
movzx eax, byte [esp + 0xc]
test al, al
jne 0x46afa9
mov byte [esp + 0xac], 0
add esp, 0x9c
ret
mov byte [esp + 0xac], 1
add esp, 0x9c
ret
call fcn.004754c0
mov ecx, eax
mov eax, edx
call fcn.00475580
mov edx, eax
mov ebx, 0x20000
call fcn.00475540
mov ecx, edx
call fcn.00475580
mov ebx, 0x20000
call fcn.00475540
mov ecx, eax
mov eax, edi
call fcn.004754c0
mov edx, eax
mov ebx, 0x10000
call fcn.00475540
mov ebx, 0x10000
call fcn.00475540
nop
call fcn.00474040
jmp fcn.0046a310