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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x56800c]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, edi
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
call fcn.0047ccb0
test al, al
jne 0x46fe80
push dword [esp + 0x20]
mov ebx, dword [edi + 0x78]
mov ecx, edi
call fcn.00479f40
mov eax, dword [ebp + 0x1c]
sub esp, 0x10
mov ecx, esp
fstp dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x28]
mov dword [ecx + 0xc], eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esi + 0x58]
call fcn.0044cde0
push 1
push ebx
mov ecx, dword [eax]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [eax + 4]
fild dword [ebp + 0x1c]
mov dword [ebp + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [ebp + 0x24], ecx
mov eax, dword [eax + 0xc]
fstp qword [esp + 0xa0]
fild dword [ebp + 0x20]
mov dword [ebp + 0x28], eax
mov eax, dword [esi + 0x58]
neg eax
mov dword [esp + 0x30], eax
mov eax, esi
fstp qword [esp + 0xa8]
fild dword [ebp + 0x24]
push ecx
mov ecx, 8
lea esi, [esp + 0xa4]
fstp qword [esp + 0xb4]
fild dword [ebp + 0x28]
fstp qword [esp + 0xbc]
fild dword [esp + 0x34]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fadd qword [esp + 0xa4]
mov eax, dword [eax + 0x5c]
neg eax
mov dword [esp + 0x34], eax
fstp qword [esp + 0xa4]
fild dword [esp + 0x34]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fadd qword [esp + 0xac]
mov eax, dword [edi + 0x28]
fstp qword [esp + 0xac]
fld dword [esp + 0x30]
mov edx, dword [eax]
fstp dword [esp]
push dword [esp + 0x2c]
sub esp, 0x20
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x108]
mov ecx, eax
push esi
call dword [edx + 0x1c]
mov esi, eax
lea edi, [esp + 0x98]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x98]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x28]
push 0
push 0
push edx
mov eax, dword [ecx]
push ebx
fld dword [esp + 0x34]
push ecx
fstp dword [esp]
push dword [esp + 0x34]
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x46fe3c
cmp dword [esi], 0
je 0x46fe3c
mov ecx, dword [ebp + 0x1c]
sub esp, 0x10
mov eax, dword [ebp + 0x20]
mov edx, esp
push dword [esp + 0x60]
mov dword [edx], ecx
mov ecx, esi
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x28]
mov dword [edx + 0xc], eax
call fcn.0046e0c0
test al, al
je 0x46fe3c
mov bl, 1
jmp 0x46fe3e
xor bl, bl
test esi, esi
je 0x46fe5e
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push esi
call fcn.004bcfc5
add esp, 8
xor eax, eax
test bl, bl
setne al
dec eax
and eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret 0x24
fld dword [edi + 0x70]
mov eax, dword [edi + 0x78]
mov ecx, dword [esp + 0x3c]
push ebx
push edi
fstp dword [esp + 0x50]
mov dword [esp + 0x54], eax
call fcn.0046ed00
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push ebx
movzx eax, ax
push edi
mov dword [esp + 0x30], eax
call fcn.0046eec0
movzx edx, ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], edx
cmp dx, ax
jae 0x46fec6
movzx eax, ax
mov dword [esp + 0x54], eax
mov dword [esp + 0x100], 0
lea eax, [esp + 0x10c]
mov ecx, 0x10
mov edx, 0xffff
mov dword [eax - 4], 0xffffffff
lea eax, [eax + 6]
mov word [eax - 6], dx
sub ecx, 1
jne 0x46fee2
push 0x60
lea eax, [esp + 0x10c]
mov dword [esp + 0x16c], ecx
push ecx
push eax
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x110], eax
call fcn.004bef30
mov esi, dword [esp + 0x104]
lea ecx, [esp + 0x104]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2c], eax
lea ebx, [esi + 1]
push ebx
call fcn.004704d0
test al, al
jne 0x46ff4d
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0x104]
lea ecx, [esi + esi*2]
lea edi, [eax + ecx*2]
mov eax, dword [esp + 0xf8]
cmp eax, esi
jbe 0x46ff7a
sub eax, esi
lea eax, [eax + eax*2]
add eax, eax
push eax
lea eax, [edi + 6]
push edi
push eax
call fcn.004bdaf0
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xf8], ebx
or ebx, 0xffffffff
mov dword [edi], eax
xor eax, eax
mov word [edi + 4], ax
mov byte [esp + 0x13], al
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x470440
mov edi, dword [esp + 0x14]
fld dword [esp + 0x48]
mov ecx, dword [esp + 0x104]
mov si, word [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], edx
mov word [esp + 0x1c], si
mov word [esp + 0x44], si
cmp eax, 1
jbe 0x46fffd
lea eax, [eax + eax*2]
fstp st(0)
add eax, 0xfffffffd
add eax, eax
push eax
lea eax, [ecx + 6]
push eax
push ecx
call fcn.004bdaf0
mov ecx, dword [esp + 0x110]
add esp, 0xc
mov eax, dword [esp + 0xf8]
fld dword [esp + 0x48]
mov edx, dword [esp + 0x18]
dec eax
xor esi, esi
mov dword [esp + 0xf8], eax
sub esp, 8
lea eax, [eax + eax*2]
mov dword [ecx + eax*2], esi
mov word [ecx + eax*2 + 4], si
lea ecx, [edi + 0x58]
mov esi, dword [ecx]
mov eax, esp
mov edi, dword [ecx + 4]
mov cx, word [esp + 0x24]
push ecx
mov dword [eax], edx
mov word [eax + 4], cx
lea ecx, [esp + 0x6c]
mov eax, dword [esp + 0x44]
fstp dword [esp]
push dword [esp + 0x58]
push dword [esp + 0x30]
mov edx, dword [eax + 0x28]
call fcn.0046e820
mov edx, dword [esp + 0x78]
add esp, 0x14
mov ecx, dword [esp + 0x60]
add edx, edi
mov edi, dword [esp + 0x68]
add ecx, esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
test edi, edi
je 0x47040f
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x47040f
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov edi, dword [esp + 0x24]
mov dword [eax + 0xc], esi
lea eax, [esp + 0xd8]
push eax
lea ecx, [edi + 0x58]
call fcn.0044cde0
mov esi, eax
sub esp, 0x10
mov ecx, dword [esi]
mov eax, dword [esi]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x7c], ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
lea eax, [esp + 0x98]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0044cde0
cmp dword [esp + 0x90], 0
je 0x4703ff
mov edx, dword [esp + 0x94]
test edx, edx
je 0x4703ff
mov di, word [esp + 0x40]
cmp di, word [esp + 0x24]
mov eax, dword [esi]
sete byte [esp + 0x34]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esp + 0xac]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [ecx + 8], eax
movzx eax, byte [esp + 0x54]
mov dword [ecx + 0xc], edx
neg eax
lea ecx, [esp + 0x33]
sbb eax, eax
and eax, ecx
mov cx, word [esp + 0x3c]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x5c]
sub esp, 8
mov eax, esp
push dword [esp + 0x54]
mov dword [eax], esi
push dword [esp + 0x70]
mov word [eax + 4], cx
push dword [esp + 0x8c]
mov ecx, dword [esp + 0x7c]
call fcn.0046f990
mov cl, byte [esp + 0x34]
mov dword [esp + 0x2c], eax
test cl, cl
je 0x4701a5
test eax, eax
je 0x4703bd
cmp di, word [esp + 0x54]
jae 0x4703bd
lea eax, [esi + 1]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0xf8]
mov word [esp + 0x70], ax
mov eax, dword [esp + 0x42]
add eax, eax
mov dword [esp + 0x18], eax
mov word [esp + 0x72], ax
mov eax, dword [esp + 0x44]
add eax, eax
mov dword [esp + 0x58], eax
lea eax, [esi + 1]
push eax
call fcn.004704d0
test al, al
jne 0x4701f4
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0x104]
lea ecx, [esi + esi*2]
lea edi, [eax + ecx*2]
mov eax, dword [esp + 0xf8]
cmp eax, esi
jbe 0x470221
sub eax, esi
lea eax, [eax + eax*2]
add eax, eax
push eax
lea eax, [edi + 6]
push edi
push eax
call fcn.004bdaf0
add esp, 0xc
mov ecx, dword [esp + 0x58]
lea eax, [esi + 1]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x70]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov word [esp + 0x76], ax
mov eax, dword [esp + 0x18]
mov word [edi + 4], cx
mov esi, dword [esp + 0xf8]
mov word [esp + 0x78], ax
lea eax, [ecx + 1]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0xf8]
lea eax, [esi + 1]
push eax
call fcn.004704d0
test al, al
jne 0x470271
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0x104]
lea ecx, [esi + esi*2]
lea edi, [eax + ecx*2]
mov eax, dword [esp + 0xf8]
cmp eax, esi
jbe 0x47029e
sub eax, esi
lea eax, [eax + eax*2]
add eax, eax
push eax
lea eax, [edi + 6]
push edi
push eax
call fcn.004bdaf0
add esp, 0xc
lea eax, [esi + 1]
mov dword [esp + 0xf8], eax
lea ecx, [esp + 0xf8]
mov eax, dword [esp + 0x76]
mov dword [edi], eax
mov eax, dword [esp + 0x5c]
mov word [edi + 4], ax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xf8]
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov word [esp + 0x7e], ax
lea eax, [esi + 1]
push eax
call fcn.004704d0
test al, al
jne 0x4702ec
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0x104]
lea ecx, [esi + esi*2]
lea edi, [eax + ecx*2]
mov eax, dword [esp + 0xf8]
cmp eax, esi
jbe 0x470319
sub eax, esi
lea eax, [eax + eax*2]
add eax, eax
push eax
lea eax, [edi + 6]
push edi
push eax
call fcn.004bdaf0
add esp, 0xc
lea eax, [esi + 1]
mov dword [esp + 0xf8], eax
lea ecx, [esp + 0xf8]
mov eax, dword [esp + 0x7c]
mov dword [edi], eax
mov eax, dword [esp + 0x58]
mov word [edi + 4], ax
mov esi, dword [esp + 0xf8]
mov eax, dword [esp + 0x1c]
mov word [esp + 0x82], ax
mov eax, dword [esp + 0x18]
mov word [esp + 0x84], ax
lea eax, [esi + 1]
push eax
call fcn.004704d0
test al, al
jne 0x470368
xor eax, eax
mov byte [eax], al
mov eax, dword [esp + 0x104]
lea ecx, [esi + esi*2]
lea edi, [eax + ecx*2]
mov eax, dword [esp + 0xf8]
cmp eax, esi
jbe 0x470395
sub eax, esi
lea eax, [eax + eax*2]
add eax, eax
push eax
lea eax, [edi + 6]
push edi
push eax
call fcn.004bdaf0
add esp, 0xc
mov cl, byte [esp + 0x34]
lea eax, [esi + 1]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x82]
mov dword [edi], eax
mov eax, dword [esp + 0x5c]
mov word [edi + 4], ax
mov eax, dword [esp + 0x2c]
mov di, word [esp + 0x40]
test cl, cl
je 0x4703ca
test eax, eax
je 0x4703ca
mov byte [esp + 0x13], 1
cmp ebx, eax
jb 0x4703d0
mov ebx, eax
mov eax, dword [esp + 0xf8]
test di, di
je 0x470420
test eax, eax
je 0x470439
mov ecx, dword [esp + 0x104]
cmp di, word [ecx]
jae 0x470427
push 0x46fc40
push 6
push eax
push ecx
call fcn.004bf510
add esp, 0x10
jmp 0x470419
mov ecx, dword [esp + 0x104]
mov eax, dword [esp + 0xf8]
jmp 0x47042b
cmp ebx, 0xfffffffe
jb 0x470419
mov ebx, 0xfffffffe
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x104]
mov edi, dword [esp + 0x14]
fld dword [esp + 0x48]
test eax, eax
jne 0x46ffb2
fstp st(0)
cmp byte [esp + 0x13], 0
jne 0x470472
mov eax, dword [esp + 0x28]
test eax, eax
je 0x47044b
mov byte [eax], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x36], 0xffff
push dword [esp + 0x40]
call fcn.0046ead0
mov ecx, dword [esp + 0x3c]
push 0
push 0xffffffffffffffff
push 0
call fcn.0046ead0
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x4704ae
mov ecx, dword [esp + 0x168]
push eax
test ecx, ecx
jne 0x4704a9
call fcn.004bf8aa
add esp, 4
jmp 0x4704ae
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esp + 0x174]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret 0x24