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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca450
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x521da0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor edi, edi
mov eax, 0xf
mov esi, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
mov dword [esp + 0xa0], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
mov ebx, dword [esi + 0x1e0]
mov byte [esp + 0xa0], 1
mov dword [esp + 0x28], ebx
cmp ebx, edi
je 0x46fb82
mov eax, dword [esi + 0x238]
mov ecx, dword [esi + 0x234]
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1c8], ecx
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c0], edi
mov edx, dword [esi + 0xde4]
mov dword [esi + 0x574], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], 0x400
mov dword [esp + 0x54], 0x300
mov eax, dword [edx]
mov ecx, dword [eax]
push 0x2000
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x3c]
push edx
push edi
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov eax, dword [esi + 0xdec]
cmp eax, edi
je 0x46fbd6
cmp eax, dword [esi + 0x1c8]
jl 0x46fc01
mov eax, dword [esi + 0x4d4]
mov ecx, dword [esi + 0x1c8]
cdq
sub eax, edx
mov edx, dword [esi + 0x1c4]
sar eax, 1
sub ecx, eax
sub ecx, 2
sub edx, 2
mov dword [esi + 0xdec], ecx
mov dword [esi + 0xde8], edx
cmp ebx, edi
jle 0x470254
lea ebx, [esi + 0x1cc]
nop
cmp edi, dword [ebx + 0x14]
jbe 0x46fc1a
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fc25
mov eax, dword [ebx + 4]
jmp 0x46fc28
lea eax, [ebx + 4]
mov al, byte [eax + edi]
mov byte [esp + 0x10], al
lea eax, [edi + 2]
cmp eax, dword [ebx + 0x14]
jbe 0x46fc3c
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fc47
mov eax, dword [ebx + 4]
jmp 0x46fc4a
lea eax, [ebx + 4]
mov cl, byte [eax + edi + 2]
push 0
mov byte [esp + 0x15], cl
push 0x4ce97b
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a], 0
call fcn.004028e0
push 0
push 0x4ce97b
lea ecx, [esp + 0x60]
call fcn.004028e0
cmp byte [esp + 0x10], 0xff
jne 0x46ffc5
cmp byte [esp + 0x11], 0xff
jne 0x46ffc5
add edi, 3
cmp edi, dword [ebx + 0x14]
jbe 0x46fc9a
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fca5
mov eax, dword [ebx + 4]
jmp 0x46fca8
lea eax, [ebx + 4]
movsx eax, byte [eax + edi]
inc edi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x46fd39
lea edx, [edi + 2]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
cmp edi, dword [ebx + 0x14]
jbe 0x46fcce
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fcd9
mov eax, dword [ebx + 4]
jmp 0x46fcdc
lea eax, [ebx + 4]
mov cl, byte [eax + edi]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
push edx
push 1
lea ecx, [esp + 0x7c]
call fcn.00402750
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x14]
jbe 0x46fd01
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fd0c
mov eax, dword [ebx + 4]
jmp 0x46fd0f
lea eax, [ebx + 4]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax + ecx]
mov byte [esp + 0x3c], dl
mov eax, dword [esp + 0x3c]
push eax
push 1
lea ecx, [esp + 0x7c]
call fcn.00402750
add dword [esp + 0x14], 3
add edi, 3
sub dword [esp + 0x18], 1
jne 0x46fcc4
cmp edi, dword [ebx + 0x14]
jbe 0x46fd43
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fd4e
mov eax, dword [ebx + 4]
jmp 0x46fd51
lea eax, [ebx + 4]
movsx eax, byte [eax + edi]
inc edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
test eax, eax
jle 0x46fdec
lea ecx, [edi + 2]
mov edx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
cmp edi, dword [ebx + 0x14]
jbe 0x46fd7d
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fd88
mov eax, dword [ebx + 4]
jmp 0x46fd8b
lea eax, [ebx + 4]
mov al, byte [eax + edi]
mov byte [esp + 0x44], al
mov ecx, dword [esp + 0x44]
push ecx
push 1
lea ecx, [esp + 0x60]
call fcn.00402750
mov edx, dword [esp + 0x18]
cmp edx, dword [ebx + 0x14]
jbe 0x46fdb0
call fcn.00496353
cmp dword [ebx + 0x18], 0x10
jb 0x46fdbb
mov eax, dword [ebx + 4]
jmp 0x46fdbe
lea eax, [ebx + 4]
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + ecx]
mov byte [esp + 0x30], dl
mov eax, dword [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x60]
call fcn.00402750
add dword [esp + 0x18], 3
add edi, 3
sub dword [esp + 0x20], 1
jne 0x46fd73
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x4d4]
mov eax, dword [esi + 0xc8]
add eax, ecx
imul eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esi + 0x570]
mov dword [esp + 0x18], edx
mov dword [esi + 0x570], 1
mov edi, eax
mov eax, dword [esp + 0x14]
inc eax
imul eax, ecx
add eax, dword [esi + 0x1c4]
add eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x23c]
jl 0x46fed6
mov ecx, esi
call fcn.00469850
mov ecx, dword [esi + 0x1bc]
cmp ecx, dword [esi + 0xb4]
jge 0x46fe87
mov ecx, esi
call fcn.00469720
mov edx, dword [esi + 0x1b8]
add edx, 3
cmp dword [esp + 0x28], edx
jg 0x46fed6
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.004695e0
mov dword [esi + 0x1b8], 0
jmp 0x470252
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.004695e0
cmp dword [esi + 0x1bc], 0
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
je 0x46fed6
mov eax, 1
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
mov eax, dword [esi + 0x57c]
cmp dword [esi + 0x578], eax
je 0x46fed6
mov dword [esi + 0x578], eax
lea eax, [esp + 0x34]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x9c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00402800
mov eax, dword [esp + 0x34]
push eax
push edi
mov ecx, esi
call fcn.0046a670
mov eax, dword [esp + 0x14]
add eax, eax
xor edi, edi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x46ffb2
cmp edi, dword [esp + 0x6c]
jbe 0x46ff33
call fcn.00496353
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x46ff42
lea eax, [esp + 0x5c]
mov cl, byte [eax + edi]
xor cl, byte [esi + 0xd15]
lea eax, [edi + 1]
mov byte [esp + 0x10], cl
cmp eax, dword [esp + 0x6c]
jbe 0x46ff5d
call fcn.00496353
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x46ff6c
lea eax, [esp + 0x5c]
mov dl, byte [esi + 0xd15]
add dl, byte [esi + 0x8c4]
push 0
xor dl, byte [eax + edi + 1]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov byte [esp + 0x1d], dl
call fcn.0046fab0
mov edx, dword [esi + 0x4d4]
add edx, dword [esi + 0xc8]
add edi, 2
add dword [esi + 0x1c4], edx
cmp edi, dword [esp + 0x1c]
jl 0x46ff28
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov dword [esi + 0x570], eax
jmp 0x470176
add edi, 3
cmp byte [esp + 0x10], 0xfe
je 0x47010f
cmp byte [esp + 0x11], 0xfe
je 0x47010f
cmp dword [esi + 0x230], 1
jne 0x46fffc
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.004695e0
mov al, byte [esi + 0xd15]
mov cl, byte [esi + 0x8c8]
xor byte [esp + 0x10], al
add cl, al
push 0
dec cl
xor byte [esp + 0x15], cl
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.0046fab0
mov ecx, esi
call fcn.00469850
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0x4d4]
mov edx, dword [esi + 0x1c4]
add eax, eax
lea edx, [edx + ecx*2]
add edx, eax
cmp edx, dword [esi + 0x23c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
jl 0x4700f9
mov eax, dword [esi + 0x238]
mov ecx, esi
mov dword [esi + 0x1c4], eax
call fcn.00469850
mov ecx, dword [esi + 0x4d8]
add ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x1c8]
add ecx, edx
cmp ecx, dword [esi + 0x240]
jge 0x470185
mov eax, dword [esi + 0x1bc]
cmp eax, dword [esi + 0xb4]
jge 0x4701c9
inc dword [esi + 0x1c0]
inc eax
cmp edi, dword [esp + 0x28]
mov dword [esi + 0x1c8], ecx
mov dword [esi + 0x1bc], eax
jle 0x47017a
push edi
mov ecx, ebx
call fcn.004023b0
movzx eax, byte [eax]
lea ecx, [edi + 2]
push ecx
mov ecx, ebx
mov byte [esp + 0x14], al
call fcn.004023b0
cmp byte [esp + 0x10], 0xfe
mov al, byte [eax]
mov byte [esp + 0x12], 0
je 0x4700f1
cmp al, 0xfe
jne 0x470176
add edi, 3
jmp 0x470176
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0x1c4]
add edx, ecx
mov dword [esi + 0x1c4], edx
jmp 0x470176
mov ecx, esi
call fcn.00469850
cmp dword [esp + 0x24], 0
jne 0x470176
mov eax, dword [esi + 0x238]
mov ecx, dword [esi + 0xcc]
inc dword [esi + 0x1bc]
inc dword [esi + 0x1c0]
mov dword [esi + 0x1c4], eax
mov eax, dword [esi + 0x4d8]
lea edx, [ecx + eax]
add dword [esi + 0x1c8], edx
mov edx, dword [esi + 0x1bc]
cmp edx, dword [esi + 0xb4]
mov dword [esp + 0x24], 1
jg 0x470213
mov edx, dword [esi + 0x1c8]
add edx, ecx
add edx, eax
cmp edx, dword [esi + 0x240]
jge 0x4701f5
cmp edi, dword [esp + 0x28]
jl 0x46fc10
jmp 0x470252
mov edi, 1
cmp dword [esi + 0x230], edi
jne 0x4701a7
mov edx, dword [esi + 0x4d8]
mov eax, dword [esi + 0x4d4]
push edx
push eax
mov ecx, esi
call fcn.004695e0
mov ecx, esi
call fcn.00469480
cmp dword [esi + 0x1bc], 0
je 0x470248
mov dword [esi + 0x204], edi
mov dword [esi + 0x208], edi
jmp 0x470234
cmp dword [esi + 0x230], 1
jne 0x4701e7
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.004695e0
mov ecx, esi
call fcn.00469480
call fcn.00434900
jmp 0x470248
cmp dword [esi + 0x230], 1
jne 0x470213
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.004695e0
mov ecx, esi
call fcn.00469480
cmp dword [esi + 0x1bc], 0
je 0x470248
mov eax, 1
mov dword [esi + 0x208], eax
mov dword [esi + 0x204], eax
mov eax, dword [esi + 0x57c]
cmp dword [esi + 0x578], eax
je 0x470248
mov dword [esi + 0x578], eax
mov dword [esi + 0x574], 0
xor edi, edi
mov edx, dword [esi + 0xde4]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov ecx, esi
call fcn.004698a0
mov eax, dword [esi + 0x4d4]
add eax, dword [esi + 0xc8]
add dword [esi + 0x1c4], eax
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x470296
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00485196
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x8c], esi
jb 0x4702bd
mov edx, dword [esp + 0x78]
push edx
call fcn.00485196
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00496795
mov esp, ebp
pop ebp
ret 8