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

Disassembly:
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x6ca9d0], ebx
jne 0x46d955
xor eax, eax
pop ebx
add esp, 0x28
ret
push esi
mov esi, dword [esp + 0x34]
cmp esi, ebx
jne 0x46d966
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x48]
push ebp
push 0x180
mov dword [esp + 0x18], eax
call fcn.0047dcaa
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x28], ebp
jne 0x46d98e
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x3c]
lea ecx, [ebp + 0xc0]
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edi, ebp
movzx eax, word [edx]
push eax
call fcn.0046b850
add esp, 4
test eax, eax
je 0x46d9d1
mov cl, byte [edx]
mov byte [edi], cl
mov al, byte [edx + 1]
add edx, 1
add edi, 1
mov byte [edi], al
add edi, 1
add edx, 1
add ebx, 1
jmp 0x46d9a7
mov al, byte [edx]
cmp al, 0x5c
jne case.0x46d9ea.72
movzx ecx, byte [edx + 1]
add ecx, 0xffffffb9
cmp ecx, 0x2c
ja case.0x46d9ea.72
movzx ecx, byte [ecx + 0x46ddf8]
jmp dword [ecx*4 + 0x46ddf0]
mov al, byte [edx + 2]
add edx, 2
xor ecx, ecx
cmp al, 0x39
ja 0x46da17
lea ecx, [ecx]
cmp al, 0x30
jb 0x46da17
movzx eax, al
lea ecx, [ecx + ecx*4]
add edx, 1
lea ecx, [eax + ecx*2 - 0x30]
mov al, byte [edx]
cmp al, 0x39
jbe 0x46da00
add ecx, 0xffffff00
mov word [edi], cx
add edi, 2
add ebx, 1
jmp 0x46d9a7
cmp al, 0x7c
je 0x46da51
test al, al
je 0x46dddc
cmp al, 0x7d
je 0x46dddc
mov byte [edi], al
add edi, 1
add edx, 1
add dword [esp + 0x14], 1
jmp 0x46d9a7
mov byte [edi], 0
mov dword [esp + 0x1c], ebx
mov byte [edi + 1], 0
mov edi, dword [esp + 0x20]
add edx, 1
xor ebx, ebx
movzx ecx, word [edx]
push ecx
call fcn.0046b850
add esp, 4
test eax, eax
mov al, byte [edx]
je 0x46da8f
mov byte [edi], al
mov cl, byte [edx + 1]
add edx, 1
add edi, 1
mov byte [edi], cl
add edi, 1
add edx, 1
add ebx, 1
jmp 0x46da65
cmp al, 0x5c
jne case.0x46daa6.72
movzx ecx, byte [edx + 1]
add ecx, 0xffffffb9
cmp ecx, 0x2c
ja case.0x46daa6.72
movzx ecx, byte [ecx + 0x46de30]
jmp dword [ecx*4 + 0x46de28]
mov al, byte [edx + 2]
add edx, 2
xor ecx, ecx
cmp al, 0x39
ja 0x46dad7
lea esp, [esp]
cmp al, 0x30
jb 0x46dad7
movzx eax, al
lea ecx, [ecx + ecx*4]
add edx, 1
lea ecx, [eax + ecx*2 - 0x30]
mov al, byte [edx]
cmp al, 0x39
jbe 0x46dac0
add ecx, 0xffffff00
mov word [edi], cx
add edi, 2
add ebx, 1
jmp 0x46da65
cmp al, 0x7d
je 0x46db09
test al, al
je 0x46dddc
mov byte [edi], al
add edi, 1
add edx, 1
add dword [esp + 0x10], 1
jmp 0x46da65
mov byte [edi], 0
mov byte [edi + 1], 0
mov ecx, dword [esi + 0x90]
push 0
lea edi, [edx + 1]
mov edx, dword [ecx + 0x1c]
push ebp
push esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edx
call fcn.0046e180
add esp, 0xc
cmp byte [esi + 0x88], 0
mov dword [esp + 0x30], eax
jne 0x46db50
push ebp
call fcn.0047dd2d
add esp, 4
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x44]
mov ebp, dword [esp + 0x18]
cmp byte [eax + ebp], 0
jne 0x46db6d
lea ecx, [ecx]
add ebp, 1
cmp byte [eax + ebp], 0
je 0x46db60
mov dword [esp + 0x18], ebp
fld dword [esi + 0x4c]
fadd st(0), st(0)
call fcn.0047edf0
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 1
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x10]
sar ecx, 1
add ecx, dword [esp + 0x1c]
add eax, 1
cdq
imul ecx, edi
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [esp + 0x28], eax
mov eax, ecx
mov ecx, dword [esp + 0x28]
cdq
idiv ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [esi + 0x78]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + ebp*4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call fcn.0046b750
mov ebp, dword [esi + 0x80]
mov eax, dword [esi + 0x64]
sub eax, ebp
sub eax, edi
add eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x18]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x1c], eax
mov eax, dword [esi + 0x84]
sub dword [esp + 0x20], eax
mov eax, dword [esi + 0x48]
sub eax, 1
cdq
idiv ecx
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
cdq
idiv ecx
cmp edi, eax
jle 0x46dc7a
mov eax, dword [esp + 0x18]
cdq
idiv ecx
add eax, 1
imul eax, ecx
cmp dword [ebx + eax*4 - 8], 0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esi + 0x54]
je 0x46dc4c
fild dword [esi + 0x18]
sub eax, ebp
cdq
sub eax, edx
fmul dword [esi + 0x4c]
mov edi, eax
sar edi, 1
call fcn.0047edf0
sub eax, edi
add eax, ebx
sub edi, ebx
add edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
jmp 0x46dc8a
sub ecx, 2
sub eax, ebp
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
cdq
sub eax, edx
mov edi, eax
fmul dword [esi + 0x4c]
sar edi, 1
call fcn.0047edf0
sub eax, edi
add eax, ebx
sub edi, ebx
add edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
jmp 0x46dc8a
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x28], 0
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
cmp dword [esi + 0x20], edi
jle 0x46dda7
jmp 0x46dcb0
mov ecx, dword [esi + 0x7c]
cmp dword [ecx + edi*4], 0
jne 0x46dd9b
mov ebx, dword [esp + 0x20]
movzx edx, word [ebx]
push edx
call fcn.0046b850
add esp, 4
test eax, eax
mov eax, dword [esi + 0x80]
je 0x46dcf7
mov ecx, dword [esi + 0x68]
push ecx
push eax
push eax
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x34]
push ecx
lea eax, [esi + 0x24]
push eax
push edx
call fcn.0046b640
add esp, 0x1c
add ebx, 2
jmp 0x46dd19
mov edx, dword [esi + 0x68]
push edx
push eax
push eax
mov eax, dword [esi + 0x14]
push eax
movzx ax, byte [ebx]
lea ecx, [esi + 0x34]
push ecx
lea edx, [esi + 0x24]
push edx
push eax
call fcn.0046b640
add esp, 0x1c
add ebx, 1
mov ecx, dword [esi + 0x7c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + edi*4]
push edx
push ebp
push ecx
mov dword [esp + 0x2c], ebx
call fcn.0046b6c0
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jl 0x46dd63
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x90]
push eax
mov eax, dword [edx + edi*4]
push 1
push eax
call fcn.0046c4b0
mov dword [esp + 0x24], 0xffffffff
jmp 0x46dd79
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esi + 0x90]
push 0
push 0
push edx
call fcn.0046c4b0
cmp byte [ebx], 0
je 0x46dda7
add ebp, dword [esp + 0x1c]
cmp ebp, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
jl 0x46dd9b
sub ebp, dword [esp + 0x28]
mov eax, dword [esi + 0x50]
add dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
add edi, 1
cmp edi, dword [esi + 0x20]
jl 0x46dcb0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x14]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x2c]
push eax
call fcn.0047dd2d
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x46ddd0
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret
push ebp
call fcn.0047dd2d
add esp, 4
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret