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

Disassembly:
push 0xffffffffffffffff
push 0x4d650b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [0x500270]
push ebx
push ebp
push esi
mov esi, dword [0x4db538]
push edi
xor ebx, ebx
mov edi, ecx
mov ebp, 8
cmp eax, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x5c], bp
jne 0x413814
push 0x4ec178
call esi
mov dword [0x500270], eax
mov eax, dword [0x500274]
test eax, eax
jne 0x413829
push 0x4ec160
call esi
mov dword [0x500274], eax
mov eax, dword [0x500278]
test eax, eax
jne 0x41383e
push 0x4ec16c
call esi
mov dword [0x500278], eax
mov eax, dword [esp + 0xdc]
lea edx, [esp + 0x8c]
push edx
mov edx, dword [0x500270]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x413896
mov eax, dword [esp + 0xdc]
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp + 0x38]
mov word [esp + 0x8c], bp
mov dword [esp + 0x94], eax
mov dword [esp + 0x38], 0
jmp 0x4138a4
cmp word [esp + 0x8c], bp
jne 0x4143eb
test eax, eax
je 0x4143eb
mov eax, dword [esp + 0xdc]
lea edx, [esp + 0x7c]
push edx
mov edx, dword [0x500274]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x4138d2
xor ebx, ebx
jmp 0x4138e9
mov ecx, dword [edi + 0x38]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
mov eax, dword [esp + 0x94]
mov ecx, dword [0x4eb4c0]
xor ebp, ebp
mov dword [esp + 0x58], ebx
cmp eax, ebp
mov esi, eax
mov dword [esp + 0x1c], ecx
je 0x41394e
mov edx, eax
shr edx, 0x10
jne 0x41391e
and eax, 0xffff
lea ecx, [esp + 0x1c]
push eax
call fcn.00407b70
jmp 0x41394e
push eax
call dword [0x4db2d0]
mov edi, eax
cmp edi, ebp
je 0x41394e
push edi
lea ecx, [esp + 0x20]
call fcn.00407580
test eax, eax
je 0x41394e
lea ecx, [edi + edi]
mov edi, dword [esp + 0x1c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd4], ebp
call fcn.00407680
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x4db8cc]
cmp ebx, ebp
mov dword [esp + 0x40], ebp
jle 0x4143a5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
xor edx, edx
mov eax, dword [eax + 0x34]
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x34], edx
lea ebp, [eax + ecx*4]
cmp ebp, edx
mov dword [esp + 0x3c], ebp
je 0x4141ef
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x28], edx
cmp eax, edx
je 0x413b63
mov esi, dword [ebp + 4]
cmp dword [esi - 0xc], edx
jl 0x4139c3
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call dword [0x4db30c]
jmp 0x4139e6
mov eax, dword [0x4eb4c0]
cmp esi, edx
mov dword [esp + 0x18], eax
jne 0x4139d4
xor eax, eax
jmp 0x4139db
push esi
call dword [0x4db2d0]
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00407780
lea ecx, [esp + 0x54]
push 7
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 1
call fcn.004109c0
mov eax, dword [eax]
push 0x4ec1b8
push eax
call dword [0x4db3e8]
mov ecx, dword [str.GdiplusStartup]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x54]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413a47
mov edi, dword [0x4db2cc]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x413a4d
mov eax, dword [esp + 0x54]
add eax, 0xfffffff4
push eax
call fcn.004d2ea5
add esp, 4
jmp 0x413a4d
mov edi, dword [0x4db2cc]
test bl, bl
je 0x413af0
lea ecx, [esp + 0x48]
push 7
push ecx
lea ecx, [esp + 0x20]
call fcn.00410810
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0xd4], 2
je 0x413abd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x413a8d
mov edx, dword [str.GdiplusStartup]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x413a94
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x413aa4
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00407780
jmp 0x413abd
lea ecx, [esp + 0x18]
call fcn.00407610
mov esi, dword [esi]
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call dword [0x4db30c]
mov eax, dword [esp + 0x48]
mov edx, dword [str.GdiplusStartup]
mov byte [esp + 0xd4], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x413af0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x413af0
mov edx, dword [esp + 0x48]
lea eax, [edx - 0xc]
push eax
call fcn.004d2ea5
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00407680
mov eax, dword [esp + 0x18]
push eax
call dword [0x4db8cc]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
call fcn.00415440
test eax, eax
mov esi, 1
jne 0x413b2c
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov edx, dword [str.GdiplusStartup]
mov byte [esp + 0xd4], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x413b5f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x413b5f
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.004d2ea5
add esp, 4
test esi, esi
jne 0x413b7d
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
push ecx
push eax
call dword [0x4db3e8]
add esp, 8
test eax, eax
jne 0x4141ef
mov edi, dword [esp + 0xe0]
mov esi, dword [0x4db40c]
push 0x4ec154
push edi
call esi
add esp, 8
test eax, eax
jne 0x413e37
cmp word [esp + 0x7c], 8
jne 0x413e37
mov eax, dword [esp + 0x84]
test eax, eax
je 0x413e37
push 0x4ec124
push eax
call esi
add esp, 8
test eax, eax
je 0x414209
mov edx, dword [esp + 0x84]
push 0x4ec110
push edx
call esi
add esp, 8
test eax, eax
je 0x414209
mov eax, dword [esp + 0x84]
push 0x4ec0fc
push eax
call esi
add esp, 8
test eax, eax
je 0x413c4a
mov ecx, dword [esp + 0x84]
push 0x4ec0f0
push ecx
call esi
add esp, 8
test eax, eax
je 0x413c4a
mov edx, dword [esp + 0x84]
push 0x4ec1a8
push edx
call esi
add esp, 8
test eax, eax
je 0x4141ef
mov eax, dword [esp + 0x84]
push 0x4eb5c4
push eax
call esi
add esp, 8
test eax, eax
jne 0x414209
jmp 0x4141ef
mov ecx, dword [esp + 0xdc]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x413c6e
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push 0x4ddaa0
push ecx
call dword [edx]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0xd4], 3
je 0x413e1c
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 8]
mov edi, dword [ecx - 8]
cmp edi, 1
mov dword [esp + 0x28], edi
jne 0x413cc0
mov edi, dword [eax]
push 0x4ebec0
push ecx
mov esi, eax
call dword [0x4db3e8]
add esp, 8
neg eax
sbb eax, eax
neg eax
dec eax
push eax
push esi
call dword [edi + 0x90]
mov dword [esp + 0x34], 1
jmp 0x413e18
mov eax, dword [edx + 4]
mov esi, dword [esp + 0xe8]
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 4
mov ebx, dword [esi]
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [0x4db538]
push eax
push esi
call dword [ebx + 0xb4]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413e06
xor esi, esi
mov word [esp + 0xac], 3
test edi, edi
jle 0x413e06
mov edi, dword [esp + 0xac]
xor ebp, ebp
cmp eax, ebp
mov byte [esp + 0xd4], 5
mov dword [esp + 0x20], ebp
jne 0x413d37
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov ebx, dword [esp + 0xb0]
push ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0xdc]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], ebx
mov ebx, dword [esp + 0xd4]
mov ecx, esp
push eax
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0xe0]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], ebx
call dword [edx + 0x2c]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x413de3
mov dword [esp + 0x24], ebp
push 0x4ddaa0
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0xe0], 6
call fcn.00416050
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x413dcd
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
mov edx, dword [ecx + 8]
mov cx, word [edx + esi*2]
mov edx, dword [eax]
cmp cx, 0x31
setne bl
dec ebx
push ebx
push eax
call dword [edx + 0x90]
mov eax, dword [esp + 0x24]
cmp eax, ebp
mov byte [esp + 0xd4], 5
je 0x413ddf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov byte [esp + 0xd4], 4
je 0x413df5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
mov eax, dword [esp + 0x14]
jl 0x413d19
test eax, eax
mov byte [esp + 0xd4], 3
je 0x413e18
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0xd4], 0
je 0x4141e3
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x4141e3
push 0x4ec140
push edi
call esi
add esp, 8
test eax, eax
je 0x414251
push 0x4ec130
push edi
call esi
add esp, 8
test eax, eax
jne 0x4141ef
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x413e8e
lea eax, [esp + 0xdc]
lea ecx, [esp + 0x10]
push eax
call fcn.004165e0
test eax, eax
jge 0x413e8e
cmp eax, 0x80004002
je 0x413e8e
push eax
call fcn.004d2dd2
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xd4], 7
test ecx, ecx
je 0x4141cd
mov eax, dword [esp + 0xe4]
xor esi, esi
cmp eax, esi
je 0x4141ab
lea eax, [esp + 0x28]
mov dword [esp + 0x28], esi
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x6c]
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
jle 0x4141cd
mov word [esp + 0x6c], 3
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0xd4], 8
mov edi, ecx
mov ebp, edx
mov ebx, ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], esi
jne 0x413f2f
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
mov ecx, dword [eax]
push edx
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], edi
mov edi, dword [esp + 0xe8]
mov dword [edx + 4], ebp
mov dword [edx + 8], edi
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0xc4]
mov edx, esp
push eax
mov dword [edx], ebx
mov dword [edx + 4], esi
mov esi, dword [esp + 0xcc]
mov dword [edx + 8], esi
mov esi, dword [esp + 0xd0]
mov dword [edx + 0xc], esi
call dword [ecx + 0x74]
test eax, eax
jl 0x41418c
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
push edx
push 0x4ddab0
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ebp, eax
mov eax, dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebp, ebp
jl 0x414146
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], 0
test eax, eax
je 0x414103
mov edx, dword [eax]
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [edx + 0x40]
mov ebp, eax
mov eax, dword [esp + 0x50]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x414103
mov ecx, dword [0x4eb4c0]
mov edx, eax
shr edx, 0x10
mov esi, eax
mov dword [esp + 0x14], ecx
jne 0x414000
and eax, 0xffff
lea ecx, [esp + 0x14]
push eax
call fcn.00407b70
jmp 0x414030
push eax
call dword [0x4db2d0]
mov edi, eax
test edi, edi
je 0x414030
push edi
lea ecx, [esp + 0x18]
call fcn.00407580
test eax, eax
je 0x414030
lea ecx, [edi + edi]
mov edi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xd4], 9
mov eax, dword [ebx + 8]
push eax
push ecx
call dword [0x4db3e8]
add esp, 8
test eax, eax
jne 0x414075
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x414068
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x40]
jmp 0x4140b9
mov edx, dword [esp + 0x14]
mov edi, dword [0x4db3c0]
push edx
call edi
mov esi, eax
add esp, 4
test esi, esi
je 0x4140c1
mov eax, dword [ebx + 8]
push eax
call edi
add esp, 4
cmp esi, eax
jne 0x4140c1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4140ae
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x40]
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x44]
push eax
call dword [0x4db53c]
mov eax, dword [esp + 0x14]
mov edx, dword [str.GdiplusStartup]
mov dword [esp + 0x44], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414103
add eax, 0xfffffff4
push eax
call dword [0x4db2cc]
test eax, eax
jg 0x414103
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.004d2ea5
add esp, 4
test ebp, ebp
jl 0x414165
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x414184
lea eax, [esp + 0x6c]
mov byte [esp + 0xd4], 7
push eax
call dword [0x4db534]
test eax, eax
jge 0x41412c
push eax
call fcn.004d2dd2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x413ed8
jmp 0x4141cd
lea edx, [esp + 0x6c]
mov byte [esp + 0xd4], 7
push edx
call dword [0x4db534]
test eax, eax
jge 0x4141cd
push eax
call fcn.004d2dd2
jmp 0x4141cd
lea eax, [esp + 0x6c]
mov byte [esp + 0xd4], 7
push eax
call dword [0x4db534]
test eax, eax
jge 0x4141cd
push eax
call fcn.004d2dd2
jmp 0x4141cd
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd4], 7
push ecx
call dword [0x4db534]
test eax, eax
jge 0x4141cd
push eax
call fcn.004d2dd2
jmp 0x4141cd
mov edx, dword [esp + 0x3c]
mov edi, dword [ecx]
mov esi, ecx
mov eax, dword [edx + 8]
push eax
call dword [0x4db390]
add esp, 4
push eax
push esi
call dword [edi + 0x40]
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x10]
mov byte [esp + 0xd4], 0
test eax, eax
je 0x4141e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41429e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jge 0x4143a5
jmp 0x413975
mov eax, dword [ebp + 8]
push eax
call dword [0x4db538]
mov edi, dword [esp + 0x5c]
push 0
sub esp, 0x10
mov esi, eax
mov ecx, esp
mov eax, dword [esp + 0xf0]
mov dword [ecx], edi
mov edi, dword [esp + 0x74]
mov edx, dword [eax]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov ecx, dword [0x500278]
push ecx
push eax
call dword [edx + 0x1c]
test esi, esi
mov dword [esp + 0x30], eax
je 0x41429e
jmp 0x414297
mov eax, dword [ebp + 8]
push eax
call dword [0x4db538]
mov edi, dword [esp + 0x5c]
push 0
sub esp, 0x10
mov esi, eax
mov ecx, esp
mov eax, dword [esp + 0xf0]
mov dword [ecx], edi
mov edi, dword [esp + 0x74]
mov edx, dword [eax]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov ecx, dword [0x500278]
push ecx
push eax
call dword [edx + 0x1c]
test esi, esi
mov dword [esp + 0x30], eax
je 0x41429e
push esi
call dword [0x4db53c]
mov eax, dword [esp + 0xe4]
test eax, eax
jne 0x4143a5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx + 0x38]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x34]
lea eax, [eax + edx*4]
lea edi, [eax + 0xc]
cmp edi, ebx
je 0x414334
mov ebp, dword [0x4db30c]
lea esi, [edi - 8]
mov ecx, dword [edi]
mov dword [esi - 4], ecx
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
cmp ecx, eax
je 0x41431a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4142f3
mov edx, dword [str.GdiplusStartup]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4142fa
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x414308
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, esi
call fcn.00407780
jmp 0x41431a
mov ecx, esi
call fcn.00407610
mov eax, dword [esi + 0xc]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call ebp
lea eax, [esi + 0x10]
lea ecx, [esi + 4]
push eax
call fcn.004104f0
add edi, 0xc
add esi, 0xc
cmp edi, ebx
jne 0x4142d1
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0x38]
lea esi, [edi - 0xc]
cmp esi, edi
je 0x4143a1
mov ebx, dword [0x4db2cc]
mov eax, dword [esi + 8]
mov edx, dword [str.GdiplusStartup]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41436d
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41436d
mov edx, dword [esi + 8]
sub edx, 0xc
push edx
call fcn.004d2ea5
add esp, 4
mov eax, dword [esi + 4]
mov edx, dword [str.GdiplusStartup]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414396
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x414396
mov edx, dword [esi + 4]
sub edx, 0xc
push edx
call fcn.004d2ea5
add esp, 4
add esi, 0xc
cmp esi, edi
jne 0x414344
mov ecx, dword [esp + 0x2c]
add dword [ecx + 0x38], 0xfffffff4
mov eax, dword [esp + 0x94]
push eax
call dword [0x4db53c]
mov eax, dword [esp + 0x1c]
mov edx, dword [str.GdiplusStartup]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4143e2
add eax, 0xfffffff4
push eax
call dword [0x4db2cc]
test eax, eax
jg 0x4143e2
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004d2ea5
add esp, 4
mov ebx, dword [esp + 0x30]
mov ebp, 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4143fe
mov esi, dword [0x4db53c]
push eax
call esi
jmp 0x414404
mov esi, dword [0x4db53c]
cmp word [esp + 0x8c], bp
jne 0x41441c
mov eax, dword [esp + 0x94]
test eax, eax
je 0x41441c
push eax
call esi
cmp word [esp + 0x7c], bp
jne 0x414431
mov eax, dword [esp + 0x84]
test eax, eax
je 0x414431
push eax
call esi
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret 0x10