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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006895c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov dword [esp + 0x38], edx
mov eax, 0xf665683c
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
push ebx
mov dword [esp + 0xc0], eax
xor ebx, ebx
mov dword [esp + 0xc4], eax
push esi
mov dword [esp + 0x28], 0xc405b401
push edi
mov dword [esp + 0x14], 0x1867b8f5
mov edi, ecx
mov dword [esp + 0x18], 0xffff
push 3
mov dword [esp + 0x20], 0x9d5fac12
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
pop esi
jmp 0x1003cb73
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x138], 0xc3707822
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x1003cb60
mov byte [esp + 0x37], bl
lea ecx, [esp + 0x37]
call fcn.1003c74f
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x14], eax
inc edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc8]
dec dword [esp + 0x18]
cmp eax, ecx
mov eax, edx
mov dword [esp + 0x28], edx
cmovle eax, ebx
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x10], ebx
jne 0x1003cbbb
xor al, al
jmp 0x1003d537
mov dword [esp + 0x14], edx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x30], 0xfa72
mov dword [esp + 0xc], 0xe0091df8
mov dword [esp + 0x18], 8
push edx
call fcn.10016d71
mov dword [esp + 0x20], 0xffffffff
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x118]
call fcn.10010cb6
mov eax, dword [esp + 0xc]
xor ecx, ecx
dec dword [esp + 0x14]
mov dword [esp + 0x30], 0xfb37
mov eax, dword [esp + 0xc]
cmp eax, 0x73672d71
setl cl
mov dword [esp + 0x18], ecx
cmp dword [esp + 0xc], 0x83d78398
mov eax, dword [esp + 0x30]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp eax, ecx
mov eax, dword [esp + 0x18]
setne dl
xor ecx, ecx
cmp edx, eax
setge cl
imul ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x14], ebx
je 0x1003cc8b
mov dword [esp + 0x2c], 0x4292978d
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x2c], 0x3fc2
mov dword [esp + 0xc], ebx
jmp 0x1003cc7f
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x144], ebx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x1003cc70
dec dword [esp + 0x20]
jmp 0x1003cca6
lea edx, [esp + 0x30]
mov dword [esp + 0x88], 0x68993dd6
lea ecx, [esp + 0x88]
call fcn.1003c966
lea ecx, [esp + 0xd0]
call fcn.10016f47
mov dword [esp + 0x1c], 0x1968
cmp dword [esp + 0x1c], 0xd4b
jge 0x1003cd2c
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0xac]
push eax
push 0x1000823c
call fcn.1004f2db
mov ecx, dword [esp + 0xb4]
add esp, 0xc
mov eax, dword [esp + 0xac]
sub ecx, 1
sbb eax, ebx
push eax
push ecx
call fcn.1003ca00
push dword [esp + 0xac]
mov esi, eax
mov edi, edx
push dword [esp + 0xac]
call fcn.1003ca00
sub eax, esi
sbb edx, edi
push edx
push eax
push 0x1000830c
call fcn.1004ff5e
mov edi, dword [esp + 0x2c]
add esp, 0x1c
push 3
pop esi
push 0x4e89
push 0x2052
lea eax, [esp + 0x4c]
push eax
push 0xe8
push ebx
call fcn.1003d9c8
add esp, 0x14
mov dword [esp + 0x18], 0xf572
mov dword [esp + 0xc], 0x30f94f37
lea ecx, [esp + 0xb4]
mov dword [esp + 0x20], 9
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0xffffffff
push 1
call fcn.10016d71
mov dword [esp + 0x1c], 0x585c
lea edx, [esp + 0xb4]
mov dword [esp + 0xc], 8
lea ecx, [esp + 0x3c]
call fcn.10010cb6
xor edx, edx
mov dword [esp + 0x3c], ebx
inc edx
jmp 0x1003cdb4
mov eax, dword [esp + 0x3c]
mov dword [esp + eax*4 + 0x48], 0x366e5232
inc dword [esp + 0x3c]
cmp dword [esp + 0x3c], edx
jl 0x1003cda4
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], ebx
jne 0x1003cdf6
dec dword [esp + 0x48]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jge 0x1003cde6
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], ebx
jne 0x1003cdf6
cmp dword [esp + 0x18], ebx
je 0x1003cdfe
mov eax, edx
cmp dword [esp + 0x20], ebx
jne 0x1003ce00
mov eax, ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xb4]
cmp ecx, dword [eax]
jg 0x1003ce19
cmp dword [esp + 0x20], ebx
jne 0x1003ce1b
mov edx, ebx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xb4]
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.10016f47
cmp dword [edi + 0x14], 0x10
jb 0x1003ce43
mov esi, dword [edi]
jmp 0x1003ce45
mov esi, edi
cmp dword [edi + 0x14], 0x10
jb 0x1003ce4f
mov ecx, dword [edi]
jmp 0x1003ce51
mov ecx, edi
mov eax, dword [edi + 0x10]
add eax, ecx
cmp esi, eax
je 0x1003d2d8
push 3
lea ecx, [esp + 0x98]
call fcn.10016d71
mov dword [esp + 0x38], 0xe2236432
lea edx, [esp + 0x94]
lea ecx, [esp + 0x78]
call fcn.1003c96b
mov dword [esp + 0x38], 2
cmp dword [esp + 0x38], ebx
jl 0x1003cef3
mov dword [esp + 0x40], 0xe1879501
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
mov dword [esp + 0x40], 2
cmp dword [esp + 0x40], ebx
jl 0x1003ceed
lea eax, [esp + 0x40]
mov dword [esp + 0x90], 0xdfbd6c3f
push eax
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x98]
call fcn.1003c98a
dec dword [esp + 0x48]
pop ecx
pop ecx
jns 0x1003cebd
dec dword [esp + 0x38]
jns 0x1003ce92
lea ecx, [esp + 0x94]
call fcn.10016f47
mov al, byte [esi]
cmp al, 0x30
jl 0x1003cf20
cmp al, 0x39
jg 0x1003cf20
mov edx, dword [esp + 0x44]
movsx eax, al
imul ecx, dword [edx], 0xa
add ecx, 0xffffffd0
add eax, ecx
inc esi
mov dword [edx], eax
jmp 0x1003ce45
push 4
lea ecx, [esp + 0x50]
call fcn.10016d71
mov dword [esp + 0x14], 0xfffffff9
mov dword [esp + 0x18], 0x15b01d97
mov dword [esp + 0x1c], 0x506ed55c
mov dword [esp + 0x10], ebx
jmp 0x1003cf59
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x64], 0x64a6847d
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x1003cf49
mov dword [esp + 0x10], ebx
jmp 0x1003cf79
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0xb871c7bf
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x1003cf66
xor ecx, ecx
mov dword [esp + 0x10], ebx
inc ecx
jmp 0x1003cf9c
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x80], 5
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x1003cf89
mov esi, dword [esp + 0x4c]
mov dword [esi], 2
jmp 0x1003cfb1
xor ecx, ecx
inc ecx
mov dword [esp + 0xc], 0x4c039ecf
cmp dword [esi + 8], ebx
je 0x1003cfc4
cmp dword [esp + 0xc], ebx
jne 0x1003cfc6
mov ecx, ebx
mov eax, dword [esp + 0xc]
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x4c]
setge dl
xor ecx, ecx
mov eax, dword [eax]
mov dword [esp + eax*4 + 0x64], edx
mov eax, dword [esp + 0xc]
cmp edx, eax
setle cl
cmp ecx, dword [esi + 0xc]
jl 0x1003cffe
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
cmp dword [esp + eax*4 + 0x64], ebx
jne 0x1003cffe
xor edi, edi
mov eax, ebx
inc edi
jmp 0x1003d003
xor edi, edi
inc edi
mov eax, edi
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, dword [esp + 0xc]
cmp eax, 0x30a4ccfd
setne cl
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
dec dword [ecx]
mov dword [esp + eax*4 + 0x64], 0x2f144811
jns 0x1003cfae
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
neg ecx
sbb ecx, ecx
xor edx, edx
neg ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
imul esi, eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x80], eax
lea ecx, [eax - 0x5c82]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
setg dl
xor ecx, ecx
cmp edx, 0xa284
setne cl
xor eax, eax
cmp esi, ecx
lea ecx, [esp + 0x4c]
setg al
mov dword [esp + 0x1c], eax
call fcn.10016f47
push 0x6cbc
push 0x19d8
lea eax, [esp + 0x4c]
push eax
push 0x4641
push ebx
call fcn.1003da88
add esp, 0x14
mov dword [esp + 0x10], 0x90ac204e
mov dword [esp + 0x28], 6
mov dword [esp + 0x18], 0xfffffffb
mov dword [esp + 0xc], ebx
push 3
pop esi
jmp 0x1003d0da
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xf4], edi
inc dword [esp + 0xc]
cmp dword [esp + 0xc], esi
jl 0x1003d0cb
mov dword [esp + 0x10], 0x13
jmp 0x1003d23b
push dword [esp + 0x78]
movdqa xmm0, xmmword [0x100089d0]
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x124]
mov dword [esp + 0x60], ebx
push eax
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], ebx
movdqu xmmword [esp + 0x12c], xmm0
mov dword [esp + 0x70], ebx
call fcn.1001d6c4
mov dword [esp + 0x14], 0x290be443
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
cmp dword [esp + 0x14], ebx
jl 0x1003d22e
mov dword [esp + 0xc], 0xc3a0b8ee
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], ebx
jl 0x1003d224
mov dword [esp + 0x20], 0x3e731e7b
mov dword [esp + 0x20], ebx
jmp 0x1003d189
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x12c], 0xdebf889e
inc dword [esp + 0x20]
cmp dword [esp + 0x20], esi
jl 0x1003d176
cmp dword [esp + 0x10], ebx
je 0x1003d1cd
inc dword [esp + 0x1c]
xor ecx, ecx
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
mov eax, dword [esp + 0xf4]
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x14]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x58]
mov edx, edi
setle cl
cmp dword [eax + esi*4], ecx
je 0x1003d1cf
mov edx, ebx
xor ecx, ecx
mov dword [esp + 0x12c], edx
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp edx, eax
push 3
setle cl
xor eax, eax
cmp ecx, 0xadc1
mov ecx, dword [esp + 0x14]
setg al
inc eax
sub ecx, eax
mov eax, dword [esp + 0x5c]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
cmp dword [eax + esi*4], ecx
mov eax, dword [esp + 0x2c]
setge dl
xor ecx, ecx
cmp edx, eax
pop esi
setle cl
mov dword [esp + 0x20], ecx
dec dword [esp + 0xc]
jns 0x1003d168
dec dword [esp + 0x14]
jns 0x1003d142
lea ecx, [esp + 0x58]
call fcn.10016f47
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xfffffffd
jne 0x1003d0ed
mov dword [esp + 0x28], ebx
jmp 0x1003d2c8
mov dword [esp + 0x1c], 0xfffffff6
mov dword [esp + 0x2c], 0x8317d239
cmp dword [esp + 0x1c], ebx
je 0x1003d26a
mov esi, edi
cmp dword [esp + 0x28], ebx
jne 0x1003d26c
mov esi, ebx
mov dword [esp + 0x2c], edi
xor edx, edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp ecx, eax
setge dl
add edx, 0x31ec8e12
je 0x1003d28f
mov eax, edi
cmp dword [esp + 0x28], ebx
jne 0x1003d291
mov eax, ebx
mov dword [esp + 0x10], eax
xor ecx, ecx
mov edx, dword [esp + 0x18]
sub edx, esi
sub edx, dword [esp + 0x1c]
add edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp edx, eax
setne cl
mov dword [esp + 0xf8], ecx
mov byte [esp + 0x27], bl
cmp byte [esp + 0x27], bl
je 0x1003d2c4
call fcn.1003c9c4
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 0x19
jne 0x1003d24c
jmp 0x1003cbb4
lea eax, [esp + 0x74]
mov dword [esp + 0x7c], ebx
push eax
mov dword [esp + 0x78], 1
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0xafa9b64f
lea edx, [esp + 0x80]
mov dword [esp + 0x90], ebx
lea ecx, [esp + 0x90]
push eax
call fcn.1003c9d2
mov dword [esp + 0x34], 0x2311
add esp, 8
cmp dword [esp + 0x2c], 0x456
jge 0x1003d406
push 0x10b282dc
push 0x10b28574
push 0x100082b0
call fcn.1004f2db
mov ecx, ebx
mov dword [esp + 0x24], ebx
mov edx, ebx
mov dword [esp + 0x20], ecx
add esp, 0xc
mov dword [esp + 0x30], edx
mov esi, ebx
mov edi, ebx
mov eax, dword [esp + 0x28]
cmp edi, 2
jne 0x1003d364
inc eax
mov edi, ebx
mov dword [esp + 0x28], eax
test eax, eax
jle 0x1003d3c4
mov ebx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
cmp edx, dword [0x10b28574]
jne 0x1003d39f
cmp eax, dword [0x10b282dc]
jne 0x1003d39f
push ebx
push 0x10008214
call fcn.1004ff5e
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
add edx, dword [esi*4 + 0x10008480]
add eax, dword [esi*4 + 0x10008470]
dec ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x1003d376
mov ecx, dword [esp + 0x14]
xor ebx, ebx
jmp 0x1003d3c8
mov eax, dword [esp + 0x18]
cmp edx, dword [0x10b28574]
jne 0x1003d3ed
cmp eax, dword [0x10b282dc]
jne 0x1003d3ed
push ecx
push 0x10008214
call fcn.1004ff5e
mov edx, dword [esp + 0x38]
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
inc ecx
inc esi
mov dword [esp + 0x14], ecx
and esi, 0x80000003
jns 0x1003d400
dec esi
or esi, 0xfffffffc
inc esi
inc edi
jmp 0x1003d354
mov byte [esp + 0x27], bl
cmp byte [esp + 0x27], bl
je 0x1003d535
mov dword [esp + 0x2c], 0x2618
cmp dword [esp + 0x2c], 0x5a9
jge 0x1003d52a
call fcn.1004f16a
push eax
push 0x100084bc
push 0x100084c0
call fcn.10050e25
add esp, 0xc
call fcn.1004f16a
add eax, 0x20
push eax
push 0x1000825c
push 0x100084c8
call fcn.10050e25
add esp, 0xc
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
push 0xf
pop eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
lea eax, [esp + 0x84]
mov byte [esp + 0x15c], 1
push eax
mov ecx, 0x10659bb8
call fcn.100161c9
mov esi, dword [esp + 0x84]
test esi, esi
jle 0x1003d50c
mov edi, 0x10659b10
lea edx, [esp + 0xdc]
mov ecx, 0x10659bb8
call fcn.1001d542
lea edx, [esp + 0x100]
mov ecx, eax
call fcn.1001d542
lea edx, [esp + 0x100]
lea ecx, [esp + 0xdc]
call fcn.1003ca7a
mov ecx, edi
mov edx, 0x10008598
test al, al
jne 0x1003d4fd
mov edx, 0x100085a4
call fcn.1001c590
push eax
call fcn.1001c55e
pop ecx
dec esi
jne 0x1003d4bb
push ebx
push 1
lea ecx, [esp + 0x108]
call fcn.10017ecb
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.10017ecb
push 0xa42
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov al, 1
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret