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

Disassembly:
push 0xffffffffffffffff
push 0x4d950f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov ax, word [0x4ffd80]
push esi
mov esi, ecx
push edi
mov word [esp + 0x88], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x8a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x88]
push 0x4fce14
push ecx
mov dword [esp + 0x6c], esi
stosw word es:[edi], ax
call dword [0x4db3fc]
mov eax, dword [esp + 0x2b4]
xor edi, edi
add esp, 8
cmp eax, edi
je 0x4957a8
lea edx, [esp + 0x88]
push eax
push edx
call dword [0x4db3c8]
add esp, 8
lea ecx, [esp + 0x6c]
call fcn.0043cb20
mov ecx, esi
mov dword [esp + 0x298], edi
call fcn.0049f3a0
push eax
lea ecx, [esp + 0x70]
call fcn.0043d060
mov ecx, dword [esp + 0x78]
cmp ecx, edi
jne 0x4957d5
xor eax, eax
jmp 0x4957de
mov eax, dword [esp + 0x7c]
sub eax, ecx
sar eax, 2
cmp eax, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edi
jle 0x496263
push ebx
push ebp
jmp 0x4957f9
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x2a8]
xor edi, edi
mov esi, dword [ecx + eax*4]
cmp ebp, edi
jne 0x495824
mov ecx, dword [esp + 0x2b4]
push ecx
mov ecx, dword [esp + 0x70]
push esi
call fcn.00495520
jmp 0x49624c
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a0], 5
call fcn.00472640
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x54]
cmp dword [esp + 0x24], edi
je 0x4958c7
lea ecx, [esp + 0x38]
call fcn.00472640
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edi
cmp eax, edi
jne 0x495881
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0x1c]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
call fcn.004979a0
cmp eax, edi
jge 0x4958ab
cmp eax, 0x80004002
je 0x4958ab
push eax
call fcn.004d2dd2
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x4958c1
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
lea ecx, [esp + 0x34]
call fcn.00472640
lea eax, [esp + 0x34]
mov dword [esp + 0x34], edi
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x24]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.00497920
cmp eax, edi
jge 0x4958fe
cmp eax, 0x80004002
je 0x4958fe
push eax
call fcn.004d2dd2
cmp dword [esp + 0x3c], edi
je 0x496217
lea ecx, [esp + 0x14]
call fcn.00472640
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x49592b
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0xa4]
cmp dword [esp + 0x14], edi
je 0x496217
mov ebx, dword [0x4db410]
push ebp
call ebx
mov edx, dword [esp + 0x2b4]
mov esi, eax
push edx
inc esi
call ebx
add esp, 8
mov dword [esp + 0x68], eax
push esi
push ebp
call dword [0x4db530]
mov dword [esp + 0x70], eax
push 0xc
mov byte [esp + 0x2a4], 6
call fcn.004d2ef0
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x2a0], 7
je 0x49599c
push 0x4fce00
mov ecx, eax
call fcn.00482780
jmp 0x49599e
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 6
mov dword [esp + 0x58], eax
jne 0x4959bc
push 0x8007000e
call fcn.004d2dd2
mov eax, dword [esp + 0x58]
cmp eax, edi
mov byte [esp + 0x2a0], 8
je 0x4959cc
mov esi, dword [eax]
jmp 0x4959ce
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4959e4
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x48]
lea ecx, [esp + 0x58]
call fcn.00482730
push 0x4fcdec
call dword [0x4db538]
mov esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x2a0], 9
cmp eax, edi
jne 0x495a2a
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x4c]
push esi
mov byte [esp + 0x2a4], 6
call dword [0x4db53c]
mov ebx, dword [esp + 0x2b4]
mov ebp, dword [0x4db2d0]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x495a6a
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
mov ecx, dword [eax]
lea edx, [esp + 0x4a]
push edx
mov edx, dword [esp + 0x2b0]
push edx
push edi
push esi
push eax
call dword [ecx + 0x64]
test eax, eax
jne 0x496210
cmp word [esp + 0x4a], 0xffff
jne 0x496210
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 0xc
call fcn.00472640
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
cmp eax, edi
jne 0x495ace
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x28]
cmp dword [esp + 0x1c], edi
je 0x49611f
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x495af9
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
call dword [ecx + 0x24]
cmp dword [esp + 0x68], edi
je 0x49607f
push 0x4fce14
call ebp
push eax
push 0x4fce14
lea ecx, [esp + 0x20]
call fcn.004962a0
push ebx
call ebp
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.004962a0
push 0x4fcdd8
call ebp
push eax
push 0x4fcdd8
lea ecx, [esp + 0x20]
call fcn.004962a0
mov esi, dword [esp + 0x2b0]
push esi
call ebp
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004962a0
push 0x4fcdd0
call ebp
push eax
push 0x4fcdd0
lea ecx, [esp + 0x20]
call fcn.004962a0
push 0xc
call fcn.004d2ef0
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xd
je 0x495b9b
push 0x4f0050
mov ecx, eax
call fcn.00482780
jmp 0x495b9d
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xc
mov dword [esp + 0x64], eax
jne 0x495bbf
push 0x8007000e
call fcn.004d2dd2
mov eax, dword [esp + 0x64]
cmp eax, edi
je 0x495bc3
mov eax, dword [eax]
jmp 0x495bc5
xor eax, eax
mov ecx, dword [esp + 0x2a8]
cmp ecx, eax
lea ecx, [esp + 0x64]
sete bl
call fcn.00482730
test bl, bl
je 0x495bf9
push 0x4fcdc0
call ebp
push eax
push 0x4fcdc0
lea ecx, [esp + 0x20]
call fcn.004962a0
jmp 0x496030
mov eax, dword [esp + 0x40]
mov esi, dword [0x4eb4c0]
test eax, eax
mov edi, eax
mov dword [esp + 0x10], esi
je 0x495c57
mov ecx, eax
shr ecx, 0x10
jne 0x495c25
and eax, 0xffff
lea ecx, [esp + 0x10]
push eax
call fcn.00407b70
jmp 0x495c53
push eax
call ebp
mov esi, eax
test esi, esi
je 0x495c53
push esi
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x495c53
lea ecx, [esi + esi]
mov esi, edi
mov edi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, 0x4fcdbc
mov byte [esp + 0x2a0], 0xe
test eax, eax
je 0x495e22
mov esi, dword [0x4db2d0]
push eax
call esi
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x495e1e
mov ecx, 0x4fcdb0
test ecx, ecx
jne 0x495c90
mov dword [esp + 0x28], edi
jmp 0x495c9b
push 0x4fcdb0
call esi
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x495e22
mov ebx, dword [0x4db3ec]
push 0x4fcdbc
push esi
call ebx
add esp, 8
test eax, eax
je 0x495cd9
lea esi, [eax + ebp*2]
push 0x4fcdbc
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x495cc6
push esi
call dword [0x4db2d0]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x495cb7
test edi, edi
jle 0x495e1e
lea ecx, [esp + 0x10]
call fcn.00407680
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
sub ebx, ebp
imul ebx, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x30], eax
add ebx, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x20], ebx
cmp eax, ebx
jl 0x495d24
cmp dword [esi - 0xc], 1
jle 0x495d62
lea eax, [esi - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
call fcn.00407580
test eax, eax
je 0x495e1e
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407650
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x2c], eax
jae 0x495e1b
push 0x4fcdbc
push esi
call dword [0x4db3ec]
mov edi, eax
add esp, 8
test edi, edi
je 0x495e00
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x30]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebp
lea ecx, [edi + ebp*2]
lea ebx, [eax + eax]
lea eax, [edi + esi]
push ebx
push ecx
push eax
mov dword [esp + 0x5c], eax
call dword [0x4db3e4]
mov ecx, esi
mov esi, 0x4fcdb0
mov edx, ecx
mov eax, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x4fcdbc
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x60]
push esi
mov word [esi + ebx], 0
mov ebx, dword [esp + 0x44]
add ebx, eax
mov dword [esp + 0x44], ebx
call dword [0x4db3ec]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x495d89
mov ebx, dword [esp + 0x20]
push esi
call dword [0x4db2d0]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jb 0x495d74
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov esi, dword [esp + 0x10]
mov ecx, 0x4f0504
test ecx, ecx
je 0x495fe7
push ecx
call dword [0x4db2d0]
mov ebp, eax
test ebp, ebp
je 0x495fe3
mov edx, 0x4fcda4
test edx, edx
jne 0x495e4f
mov dword [esp + 0x28], edx
jmp 0x495e5e
push 0x4fcda4
call dword [0x4db2d0]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x30], eax
jae 0x495fe7
mov ebx, dword [0x4db3ec]
push 0x4f0504
push esi
call ebx
add esp, 8
test eax, eax
je 0x495e9e
lea esi, [eax + ebp*2]
push 0x4f0504
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x495e8b
push esi
call dword [0x4db2d0]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x495e7c
test edi, edi
jle 0x495fe3
lea ecx, [esp + 0x10]
call fcn.00407680
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
sub ebx, ebp
imul ebx, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x2c], eax
add ebx, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x50], ebx
cmp eax, ebx
jl 0x495ee9
cmp dword [esi - 0xc], 1
jle 0x495f27
lea ecx, [esi - 0xc]
push ebx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x495fe3
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407650
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x30], eax
jae 0x495fe0
push 0x4f0504
push esi
call dword [0x4db3ec]
mov edi, eax
add esp, 8
test edi, edi
je 0x495fc5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x2c]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebp
lea ecx, [edi + ebp*2]
lea ebx, [eax + eax]
lea eax, [edi + esi]
push ebx
push ecx
push eax
mov dword [esp + 0x2c], eax
call dword [0x4db3e4]
mov ecx, esi
mov esi, 0x4fcda4
mov edx, ecx
mov eax, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
push 0x4f0504
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
push esi
mov word [esi + ebx], 0
mov ebx, dword [esp + 0x40]
add ebx, eax
mov dword [esp + 0x40], ebx
call dword [0x4db3ec]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x495f4e
mov ebx, dword [esp + 0x50]
push esi
call dword [0x4db2d0]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x495f39
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebx
mov esi, dword [esp + 0x10]
push esi
call dword [0x4db2d0]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004962a0
mov eax, dword [esp + 0x10]
mov edx, dword [str.GdiplusStartup]
mov byte [esp + 0x2a0], 0xc
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x496030
add eax, 0xfffffff4
push eax
call dword [0x4db2cc]
test eax, eax
jg 0x496030
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004d2ea5
add esp, 4
push 0x4fcd94
call dword [0x4db2d0]
push eax
push 0x4fcd94
lea ecx, [esp + 0x20]
call fcn.004962a0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x496060
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x54]
mov ebx, dword [esp + 0x2b4]
mov ebp, dword [0x4db2d0]
xor edi, edi
jmp 0x49611f
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x496095
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0xf8]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x90]
push eax
call dword [0x4db410]
push eax
lea ecx, [esp + 0x98]
push esi
push ecx
call dword [0x4db3dc]
add esp, 0x10
test eax, eax
jne 0x49611f
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x4960e2
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
lea ecx, [esp + 0x60]
push ecx
push eax
call dword [edx + 0xe8]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x496106
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xf4]
mov edx, dword [esp + 0x60]
push edx
call dword [0x4db53c]
push 0xc
call fcn.004d2ef0
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xf
je 0x496147
push 0x4fce00
mov ecx, eax
call fcn.00482780
jmp 0x496149
xor eax, eax
cmp eax, edi
mov byte [esp + 0x2a0], 0xc
mov dword [esp + 0x5c], eax
jne 0x496167
push 0x8007000e
call fcn.004d2dd2
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov byte [esp + 0x2a0], 0x10
je 0x496177
mov esi, dword [eax]
jmp 0x496179
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x49618f
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x48]
lea ecx, [esp + 0x5c]
call fcn.00482730
push 0x4fcdec
call dword [0x4db538]
mov esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x2a0], 0x11
cmp eax, edi
jne 0x4961d5
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 1
push esi
push eax
call dword [ecx + 0x4c]
push esi
mov esi, dword [0x4db53c]
call esi
lea ecx, [esp + 0x1c]
call fcn.00472640
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2a0], 6
push ecx
call esi
jmp 0x495a54
push esi
call dword [0x4db53c]
lea ecx, [esp + 0x14]
call fcn.00472640
lea ecx, [esp + 0x38]
call fcn.00472640
lea ecx, [esp + 0x24]
call fcn.00472640
lea ecx, [esp + 0x3c]
call fcn.00472640
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a0], 0
call fcn.00472640
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x4957f2
pop ebp
pop ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x298], 0xffffffff
call fcn.0043cb70
mov ecx, dword [esp + 0x290]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x294
ret 0x10