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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0049acbf
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x78]
mov eax, dword [eax + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [0x4a9744]
mov ecx, dword [esi + 0x3c]
fild dword [ecx + 0x60]
fmul qword [esi + 0x80]
fcomp qword [0x4aa6f8]
fild dword [ecx + 0x60]
fmul qword [esi + 0x80]
fnstsw ax
test ah, 1
jne 0x41c8ab
fadd qword [0x4aa708]
jmp 0x41c8b1
fsub qword [0x4aa708]
call fcn.00470a50
mov edi, dword [esp + 0x84]
mov ecx, dword [ebp + 8]
sub eax, edi
cmp ecx, 7
ja case.default.0x41c8c7
jmp dword [ecx*4 + 0x41d2b4]
mov ecx, dword [esi + 0x74]
add ecx, 0xfffffffb
jmp 0x41c8f1
mov ecx, dword [esi + 0x74]
add ecx, 5
jmp 0x41c8f1
mov ecx, dword [esi + 0x74]
add ecx, 0xffffffec
jmp 0x41c8f1
mov ecx, dword [esi + 0x74]
add ecx, 0x14
jmp 0x41c8f1
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x74], ecx
mov ecx, dword [esi + 0x74]
xor ebx, ebx
cmp ecx, ebx
jge 0x41c900
mov dword [esi + 0x74], ebx
cmp dword [esi + 0x74], eax
jle 0x41c908
mov dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
push 1
push edx
push 1
mov ecx, esi
call fcn.00484ecd
mov eax, dword [esi + 0x1c]
push eax
call dword [0x4a9738]
push eax
call fcn.0048a350
lea ecx, [esp + 0x68]
mov edi, eax
call fcn.0048a2ae
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
mov edx, dword [edi]
mov dword [esp + 0x90], ebx
neg eax
push eax
lea eax, [esp + 0x4c]
neg ecx
push ecx
push eax
mov ecx, edi
call dword [edx + 0x38]
cmp edi, ebx
jne 0x41c959
xor eax, eax
jmp 0x41c95c
mov eax, dword [edi + 4]
push eax
call dword [0x4a91e0]
push eax
lea ecx, [esp + 0x6c]
call fcn.0048a365
mov ecx, dword [esi + 0x94]
mov edx, dword [esp + 0x6c]
push ecx
push edx
call dword [0x4a91e4]
fild dword [esp + 0x84]
mov dword [esp + 0x30], eax
fdiv qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41c9a5
fadd qword [0x4aa708]
jmp 0x41c9ab
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x80]
mov dword [esp + 0x10], eax
fdiv qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41c9d6
fadd qword [0x4aa708]
jmp 0x41c9dc
fsub qword [0x4aa708]
call fcn.00470a50
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fdiv qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41ca0b
fadd qword [0x4aa708]
jmp 0x41ca11
fsub qword [0x4aa708]
call fcn.00470a50
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
fdiv qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41ca40
fadd qword [0x4aa708]
jmp 0x41ca46
fsub qword [0x4aa708]
call fcn.00470a50
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x68]
neg ecx
sbb ecx, ecx
push 0xcc0020
and ecx, edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x98]
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push ebx
push eax
call dword [0x4a91c4]
mov ecx, dword [esi + 0x17c]
test ecx, ecx
mov dword [esp + 0x2c], ecx
je 0x41cb1c
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x41cb1c
mov ecx, dword [esi + 0x178]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x41cadb
mov ebx, dword [esi + 0x84]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
push ebx
mov ebx, dword [esi + 0x80]
neg edx
neg eax
push ebx
push edx
push eax
push edi
call fcn.0045a110
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x178]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 0x74]
test edx, edx
je 0x41cb0f
mov ebx, dword [esi + 0x84]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
push ebx
mov ebx, dword [esi + 0x80]
neg edx
neg eax
push ebx
push edx
push eax
push edi
call fcn.00459990
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41caa7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call dword [0x4a91e4]
lea ecx, [esp + 0x68]
call fcn.0048a3cd
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x560], 1
jne 0x41ccad
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x41ccad
push 0
push 1
push 0
lea ecx, [esp + 0x1c]
call fcn.0048af14
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 1
call fcn.0048af64
push 6
mov ecx, edi
mov byte [esp + 0x94], 2
call fcn.0048a5ca
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0048a4f9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, edi
call fcn.0048a4f9
mov ebx, dword [esi + 0x150]
mov dword [esp + 0x28], eax
fild dword [ebx]
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
fild dword [ebx + 4]
mov dword [esp + 0x38], eax
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
mov edx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push edx
push eax
mov ecx, edi
call fcn.0048a983
mov eax, dword [esi + 0x18c]
mov ebx, 1
cmp eax, ebx
jle 0x41cc52
mov ecx, dword [esi + 0x150]
fild dword [ecx + ebx*8]
lea eax, [ecx + ebx*8]
mov dword [esp + 0x30], eax
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
fild dword [edx + 4]
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
push eax
mov eax, dword [esp + 0x3c]
push eax
mov ecx, edi
call fcn.0048a9cf
mov eax, dword [esi + 0x18c]
inc ebx
cmp ebx, eax
jl 0x41cbfd
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0048a4f9
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
call fcn.0048a4f9
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.0048a5ca
mov ebx, vtable.CGdiObject.0
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], 3
call fcn.0048aefe
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 4
call fcn.0048aefe
mov byte [esp + 0x90], 0
lea eax, [esi + 0x28c]
test eax, eax
je 0x41cddd
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41cddd
lea ecx, [esp + 0x48]
call fcn.0048a2ae
test edi, edi
mov byte [esp + 0x90], 5
jne 0x41ccdf
xor eax, eax
jmp 0x41cce2
mov eax, dword [edi + 4]
push eax
call dword [0x4a91e0]
push eax
lea ecx, [esp + 0x4c]
call fcn.0048a365
mov ecx, dword [esi + 0x94]
mov edx, dword [esp + 0x4c]
push ecx
push edx
call dword [0x4a91e4]
mov ecx, dword [esi + 0x148]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x58]
push eax
push ecx
call dword [0x4a9064]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esi + 0x78]
sub ebx, eax
mov eax, dword [esp + 0x64]
sub eax, edx
mov edx, dword [esi + 0x148]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x74]
neg eax
neg ecx
push eax
push ecx
push edx
call dword [0x4a91e8]
lea eax, [esi + 0x144]
mov ecx, edi
push eax
call fcn.0048a8bf
lea eax, [esi + 0x28c]
test eax, eax
je 0x41cd67
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
push 1
push ecx
mov ecx, dword [esp + 0x60]
push ebx
push 0
push 0
push edx
mov edx, dword [esi + 0x288]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
mov eax, dword [esp + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.00429500
push 0
mov ecx, edi
call fcn.0048a8bf
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x148]
push eax
push ecx
push edx
call dword [0x4a91e8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
call dword [0x4a91e4]
lea ecx, [esp + 0x48]
call fcn.0048a3cd
lea ecx, [esp + 0x48]
mov byte [esp + 0x90], 0
call fcn.0048a3e3
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x560], 0x15
jne 0x41d0cc
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x41d0cc
mov eax, dword [esi + 0xfc]
lea ecx, [esp + 0x48]
push eax
push 1
push 0
call fcn.0048af14
mov ecx, dword [esi + 0xfc]
mov byte [esp + 0x90], 6
push ecx
lea ecx, [esp + 0x44]
call fcn.0048af64
lea edx, [esp + 0x48]
mov ecx, edi
push edx
mov byte [esp + 0x94], 7
call fcn.0048a4f9
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.0048a4f9
push 6
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.0048a5ca
mov ecx, dword [esi + 0x29c]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
cmp eax, 0xffffec78
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
jge 0x41ce8b
add eax, 0x2710
mov dword [esp + 0x38], eax
mov eax, edx
add eax, 0x2710
mov dword [esp + 0x3c], eax
fild dword [esp + 0x38]
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x3c]
mov ebx, eax
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
push eax
lea eax, [esp + 0x34]
push ebx
push eax
mov ecx, edi
call fcn.0048a983
mov eax, dword [esi + 0x2a4]
mov ebx, 1
cmp eax, ebx
jle 0x41cf4a
mov ecx, dword [esi + 0x29c]
mov eax, dword [ecx + ebx*8]
cmp eax, 0xffffec78
mov dword [esp + 0x38], eax
mov edx, dword [ecx + ebx*8 + 4]
mov dword [esp + 0x3c], edx
jge 0x41cf04
add eax, 0x2710
mov dword [esp + 0x38], eax
mov eax, edx
add eax, 0x2710
mov dword [esp + 0x3c], eax
fild dword [esp + 0x38]
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x3c]
mov dword [esp + 0x38], eax
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
push eax
mov eax, dword [esp + 0x3c]
push eax
mov ecx, edi
call fcn.0048a9cf
mov eax, dword [esi + 0x2a4]
inc ebx
cmp ebx, eax
jl 0x41ced4
mov eax, dword [esi + 0x18c]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x41d071
jmp 0x41cf64
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x2a0]
mov eax, dword [edx + ecx*8]
cmp eax, 0xffffec78
mov dword [esp + 0x38], eax
mov ecx, dword [edx + ecx*8 + 4]
mov dword [esp + 0x3c], ecx
jge 0x41cfdd
add eax, 0x2710
mov edx, ecx
mov dword [esp + 0x38], eax
add edx, 0x2710
fild dword [esp + 0x38]
mov dword [esp + 0x3c], edx
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x3c]
mov ebx, eax
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
lea ecx, [eax + 3]
lea edx, [ebx + 3]
add eax, 0xfffffffd
push ecx
add ebx, 0xfffffffd
push edx
mov edx, dword [edi + 4]
push eax
push ebx
push edx
call dword [0x4a9060]
jmp 0x41d05a
fild dword [esp + 0x38]
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x3c]
mov ebx, eax
fmul qword [esi + 0x80]
fadd qword [0x4aa708]
call fcn.00470a50
mov dword [esp + 0x3c], eax
add eax, 3
mov dword [esp + 0x28], eax
lea ecx, [ebx - 3]
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x34], ecx
push ecx
push eax
mov ecx, edi
call fcn.0048a983
mov ecx, dword [esp + 0x28]
lea edx, [ebx + 3]
push ecx
push edx
mov ecx, edi
call fcn.0048a9cf
mov eax, dword [esp + 0x3c]
mov ecx, edi
add eax, 0xfffffffd
push eax
push ebx
call fcn.0048a9cf
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov ecx, edi
call fcn.0048a9cf
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x18c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41cf60
mov eax, dword [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0048a5ca
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0048a4f9
mov edx, dword [esp + 0x1c]
mov ecx, edi
push edx
call fcn.0048a4f9
mov ebx, vtable.CGdiObject.0
mov dword [esp + 0x40], ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x90], 8
call fcn.0048aefe
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x90], 9
call fcn.0048aefe
mov byte [esp + 0x90], 0
lea eax, [esi + 0x1ac]
test eax, eax
je 0x41d109
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41d109
mov eax, dword [esi + 0x23c]
mov edx, dword [esi + 0x244]
mov ecx, dword [esi + 0x238]
push 0
sub edx, eax
push 1
push edx
mov edx, dword [esi + 0x240]
sub edx, ecx
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.0042a450
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x560]
test eax, eax
jne 0x41d120
mov ecx, esi
call fcn.0042b870
jmp 0x41d135
cmp eax, 0x11
jne 0x41d135
or ecx, 0xffffffff
or eax, 0xffffffff
push ecx
push eax
push edi
mov ecx, esi
call fcn.0042e0b0
mov eax, dword [esi + 0x4b4]
test eax, eax
je 0x41d279
mov eax, dword [esi + 0x4b8]
test eax, eax
je 0x41d279
lea ecx, [esi + 0x36c]
mov edx, dword [esi + 0x36c]
mov dword [esp + 0x58], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x60], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
fmul qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41d195
fadd qword [0x4aa708]
jmp 0x41d19b
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x60]
mov dword [esp + 0x24], eax
fmul qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41d1c3
fadd qword [0x4aa708]
jmp 0x41d1c9
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x5c]
mov dword [esp + 0x28], eax
fmul qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41d1f1
fadd qword [0x4aa708]
jmp 0x41d1f7
fsub qword [0x4aa708]
call fcn.00470a50
fild dword [esp + 0x58]
mov ebx, eax
fmul qword [esi + 0x80]
fcom qword [0x4aa6f8]
fnstsw ax
test ah, 1
jne 0x41d21d
fadd qword [0x4aa708]
jmp 0x41d223
fsub qword [0x4aa708]
call fcn.00470a50
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], eax
push 0
lea eax, [esp + 0x5c]
push 0
mov dword [esp + 0x68], ecx
push eax
push edi
lea ecx, [esi + 0x2fc]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], edx
call fcn.00445bd0
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
push 0
push edx
mov edx, dword [esi + 0x80]
push edx
push ecx
push eax
push edi
lea ecx, [esi + 0x358]
call fcn.00441100
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4a9740]
lea ecx, [esp + 0x68]
mov dword [esp + 0x90], 0xffffffff
call fcn.0048a3e3
mov ecx, dword [esp + 0x88]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc