Function at 0x487400
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1b4
mov eax, dword [0x5b00cc]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
xor ebx, ebx
cmp byte [0x5f5528], bl
push esi
push edi
jne 0x4875e2
push str.Gdiplus.dll
mov byte [0x5f5528], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4875ad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GdiplusStartup
push esi
call edi
push str.GdipLoadImageFromFile
push esi
mov dword [0x5f552c], eax
call edi
push str.GdipCreateBitmapFromFile
push esi
mov dword [0x5f5530], eax
call edi
push str.GdipGetImageWidth
push esi
mov dword [0x5f5534], eax
call edi
push str.GdipGetImageHeight
push esi
mov dword [0x5f5538], eax
call edi
push str.GdipGetImagePixelFormat
push esi
mov dword [0x5f553c], eax
call edi
push str.GdipGetImageVerticalResolution
push esi
mov dword [0x5f5540], eax
call edi
push str.GdipGetImageHorizontalResolution
push esi
mov dword [0x5f5544], eax
call edi
push str.GdipDrawImageI
push esi
mov dword [0x5f5548], eax
call edi
push str.GdipDrawImageI
push esi
mov dword [0x5f554c], eax
call edi
push str.GdipCreateFromHDC
push esi
mov dword [0x5f5550], eax
call edi
push str.GdipCreateHBITMAPFromBitmap
push esi
mov dword [0x5f5554], eax
call edi
push str.GdipDeleteGraphics
push esi
mov dword [0x5f5558], eax
call edi
push str.GdipDisposeImage
push esi
mov dword [0x5f555c], eax
call edi
push str.GdipGetImagePalette
push esi
mov dword [0x5f5560], eax
call edi
push str.GdipGetImagePaletteSize
push esi
mov dword [0x5f5564], eax
call edi
cmp dword [0x5f552c], ebx
mov dword [0x5f5568], eax
je 0x4875a2
cmp dword [0x5f5530], ebx
je 0x4875a2
cmp dword [0x5f5534], ebx
je 0x4875a2
cmp dword [0x5f5538], ebx
je 0x4875a2
cmp dword [0x5f553c], ebx
je 0x4875a2
cmp dword [0x5f5540], ebx
je 0x4875a2
cmp dword [0x5f5544], ebx
je 0x4875a2
cmp dword [0x5f5548], ebx
je 0x4875a2
cmp dword [0x5f554c], ebx
je 0x4875a2
cmp dword [0x5f5550], ebx
je 0x4875a2
cmp dword [0x5f5554], ebx
je 0x4875a2
cmp dword [0x5f5558], ebx
je 0x4875a2
cmp dword [0x5f555c], ebx
je 0x4875a2
cmp dword [0x5f5560], ebx
je 0x4875a2
cmp dword [0x5f5564], ebx
je 0x4875a2
cmp eax, ebx
je 0x4875a2
mov byte [0x5f5529], 1
jmp 0x4875b9
mov byte [0x5f5529], bl
jmp 0x48799c
cmp byte [0x5f5529], bl
je 0x48799c
push ebx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x6c], 1
call dword [0x5f552c]
cmp byte [0x5f5529], bl
je 0x48799c
lea edx, [esp + 0x24]
push edx
lea eax, [ebp + 8]
call fcn.004abc10
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x487630
cmp dword [edi + 0x10], 0x100
jne 0x487614
mov eax, dword [edi + 4]
add eax, 1
jmp 0x487635
xor esi, esi
push 0x2cf
push str.........UniversalREALstring.cpp
mov edx, 0x57e0a8
lea ecx, [esi + 4]
call fcn.004f1fc0
add esp, 8
mov eax, 0x5f4c08
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x28], ebx
call dword [0x5f5534]
cmp eax, ebx
jne 0x487991
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x487991
lea edx, [esp + 0x5c]
push edx
push eax
call dword [0x5f5538]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [0x5f553c]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x60]
push edx
push eax
call dword [0x5f5540]
mov cx, word [esp + 0x5c]
mov dx, word [esp + 0x30]
push 0xac
mov word [esp + 0x38], bx
mov word [esp + 0x3a], bx
mov word [esp + 0x3e], cx
mov word [esp + 0x3c], dx
call fcn.005662c8
add esp, 4
cmp eax, ebx
je 0x4877dc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
push 0x20
mov esi, eax
call fcn.00442710
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x50], edi
jne 0x4876f1
xor esi, esi
push 0x26a
push str.........Commonpictutil.cpp
mov edx, str.dPane
lea ecx, [esi + 4]
call fcn.004f1fc0
add esp, 8
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [0x5f5544]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x90]
push edx
push eax
call dword [0x5f5548]
fld dword [esp + 0x88]
fadd qword [0x5a1070]
sub esp, 8
fstp qword [esp]
call fcn.00573cf0
mov esi, dword [edi]
add esp, 8
call fcn.005734f0
mov edx, dword [esi + 0x54]
push eax
mov ecx, edi
call edx
fld dword [esp + 0x90]
fadd qword [0x5a1070]
sub esp, 8
fstp qword [esp]
call fcn.00573cf0
mov esi, dword [edi]
add esp, 8
call fcn.005734f0
push eax
mov eax, dword [esi + 0x50]
mov ecx, edi
call eax
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
push ecx
push edx
mov dword [esp + 0x64], ebx
call dword [0x5f5558]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x70]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4878d4
cmp word [esp + 0x82], 0x20
jne 0x4878d4
push 0xac
mov byte [esp + 0x1f], bl
call fcn.005662c8
add esp, 4
cmp eax, ebx
je 0x4877e7
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push ecx
push 0x20
mov esi, eax
call fcn.00442710
mov dword [esp + 0x54], eax
jmp 0x4877eb
xor edi, edi
mov dword [esp + 0x50], edi
jmp 0x4876d5
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov ebx, dword [edx + 0x84]
add eax, eax
add eax, eax
push eax
push 0
push ebx
call fcn.0056b660
mov ecx, dword [esp + 0x90]
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x78], esi
mov dword [esp + 0x34], ecx
jle 0x4878c4
mov edi, dword [esp + 0x7c]
lea esp, [esp]
xor eax, eax
test edi, edi
jle 0x4878a7
mov edx, edi
imul edx, esi
add edx, eax
mov dl, byte [edx + ecx + 3]
cmp dl, 0xff
je 0x487892
or cl, 0xff
sub cl, dl
mov edx, dword [esp + 0x30]
sub edx, esi
sub edx, 1
imul edx, edi
add edx, eax
mov byte [edx + ebx + 1], cl
mov edx, dword [esp + 0x30]
sub edx, esi
sub edx, 1
imul edx, dword [esp + 0x7c]
add edx, eax
mov byte [edx + ebx + 2], cl
mov edx, dword [esp + 0x30]
sub edx, esi
sub edx, 1
imul edx, dword [esp + 0x7c]
add edx, eax
mov byte [edx + ebx + 3], cl
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x1b], 1
imul edi, esi
add edi, eax
mov byte [edi + ecx + 3], 0xff
mov edi, dword [esp + 0x7c]
add eax, 4
cmp eax, edi
jl 0x487836
add esi, 1
cmp esi, dword [esp + 0x78]
jl 0x487830
cmp byte [esp + 0x1b], 0
je 0x4878c4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov dword [ecx + 0x20], eax
jmp 0x4878d0
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [esp + 0x50]
lea esi, [edi + 0x2c]
mov dword [esp + 0x28], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [esp + 0x58]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push ebx
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + 0x60]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
push eax
call dword [0x5f5560]
cmp dword [esp + 0x2c], 0
jne 0x48798b
mov esi, dword [esp + 0x24]
test esi, esi
je 0x487968
call fcn.004ab850
mov esi, dword [ebp + 8]
test esi, esi
je 0x487974
call fcn.004ab850
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x48799c
mov esi, edi
call fcn.004ab850
lea ecx, [esp + 0x2c]
push ecx
lea eax, [ebp + 8]
mov dword [esp + 0x4c], ebx
call fcn.004abc10
mov eax, dword [eax]
cmp eax, ebx
je 0x4879e0
cmp dword [eax + 0x10], 0x100
jne 0x4879c4
mov eax, dword [eax + 4]
add eax, 1
jmp 0x4879e5
xor esi, esi
push 0x2cf
push str.........UniversalREALstring.cpp
mov edx, 0x57e0a8
lea ecx, [esi + 4]
call fcn.004f1fc0
add esp, 8
mov eax, 0x5f4c08
lea edx, [esp + 0x48]
push edx
push 0x57c46c
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromI8]
mov esi, dword [esp + 0x2c]
cmp esi, ebx
mov edi, eax
je 0x487a08
call fcn.004ab850
cmp edi, ebx
jl 0x487b4c
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp dword [esp + 0x24], ebx
jne 0x487a47
xor esi, esi
push 0x2c8
push str.........Commonpictutil.cpp
mov edx, str.hBitmapHandle
lea ecx, [esi + 4]
call fcn.004f1fc0
add esp, 8
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x98]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x487b4c
mov ax, word [esp + 0x9c]
mov cx, word [esp + 0xa0]
movzx esi, word [esp + 0xaa]
push 0xac
mov word [esp + 0x64], bx
mov word [esp + 0x66], bx
mov word [esp + 0x6a], ax
mov word [esp + 0x68], cx
call fcn.005662c8
add esp, 4
cmp eax, ebx
je 0x487ab7
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push edx
push ecx
push esi
mov esi, eax
call fcn.00442710
mov edi, eax
jmp 0x487ab9
xor edi, edi
lea esi, [edi + 0x2c]
mov dword [esp + 0x28], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
movsx ecx, word [esp + 0x64]
movsx edx, word [esp + 0x66]
push ecx
push edx
push 0
push 0
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x74]
push edx
push eax
mov eax, edx
call fcn.0041b6e0
mov edx, dword [esi]
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 0x60]
add esp, 0xc
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x487968
lea eax, [ebp + 8]
push eax
mov eax, 4
lea ebx, [esp + 0x30]
mov dword [esp + 0x50], 1
call fcn.004ac560
mov eax, dword [eax]
add esp, 4
test eax, eax
je 0x487b8f
mov eax, dword [eax + 4]
add eax, 1
test eax, eax
je 0x487b96
push str..bmp
push eax
call fcn.00567846
add esp, 8
test eax, eax
jne 0x487b96
mov bl, 1
jmp 0x487b98
mov eax, 0x57e81c
jmp 0x487b79
xor bl, bl
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x487ba5
call fcn.004ab850
test bl, bl
je 0x487bc7
mov esi, dword [ebp + 8]
test esi, esi
push ecx
mov eax, esp
mov dword [eax], esi
je 0x487bb8
add dword [esi], 1
call fcn.00488f60
add esp, 4
mov edi, eax
jmp 0x48796b
cmp byte [0x5f3c3a], 0
jne 0x487bef
push 0
call fcn.00565620
add esp, 4
test ax, ax
jne 0x487de4
call fcn.00565ec0
mov byte [0x5f3c3a], 1
mov esi, dword [ebp + 8]
test esi, esi
je 0x487bfe
mov eax, dword [esi + 4]
add eax, 1
jmp 0x487c03
mov eax, 0x57e81c
push 0
lea ecx, [esp + 0xb4]
push ecx
push eax
call fcn.005652e0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xb4]
push eax
call fcn.00565ea0
add esp, 8
test ax, ax
jne 0x487de7
cmp byte [0x5f3c3a], al
jne 0x487c57
push 0
call fcn.00565620
add esp, 4
test ax, ax
jne 0x487c8c
call fcn.00565ec0
mov byte [0x5f3c3a], 1
mov eax, dword [ebp + 0xc]
cmp eax, 1
jle 0x487c6d
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00565b40
add esp, 8
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.00565b00
add esp, 8
test ax, ax
je 0x487c8c
mov dword [esp + 0x4c], 1
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.005659a0
mov dx, word [esp + 0x4a]
mov si, word [esp + 0x48]
add esp, 8
test dx, dx
jne 0x487cb2
test si, si
je 0x487ce8
movsx eax, si
movsx ecx, dx
neg eax
add word [esp + 0x44], ax
neg ecx
add word [esp + 0x46], cx
add si, ax
add dx, cx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push ecx
mov word [esp + 0x4a], dx
mov word [esp + 0x48], si
call fcn.00565d60
add esp, 8
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x44], 0
call fcn.005658e0
mov eax, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x487d21
mov ecx, dword [eax]
movzx eax, word [ecx + 0x52]
cmp ax, 0x20
movsx ebx, ax
jle 0x487d1c
sub ebx, 0x20
cmp ebx, 0x10
jge 0x487d26
mov ebx, 0x20
push 0xac
call fcn.005662c8
add esp, 4
test eax, eax
je 0x487d4d
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
push ecx
push ebx
mov esi, eax
call fcn.00442710
mov edi, eax
jmp 0x487d4f
xor edi, edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x487d7b
mov eax, dword [eax]
movzx ecx, word [eax + 0x26]
mov edx, dword [edi]
mov edx, dword [edx + 0x50]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x2a]
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
push ecx
mov ecx, edi
call edx
cmp dword [esp + 0x4c], 1
jbe 0x487db6
push 0xc
call fcn.005662c8
mov esi, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x487daf
test esi, esi
mov ecx, dword [esp + 0x4c]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], esi
je 0x487da4
add dword [esi], 1
push eax
call fcn.004890f0
mov dword [edi + 0x24], eax
jmp 0x487db9
xor eax, eax
mov dword [edi + 0x24], eax
jmp 0x487db9
mov esi, dword [ebp + 8]
cmp dword [edi + 0x64], 0
jne 0x487e07
mov esi, edi
call fcn.00441980
mov edx, dword [esp + 0x1c]
push edx
call fcn.00565200
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x487de4
push eax
call fcn.00565420
add esp, 4
mov esi, dword [ebp + 8]
test esi, esi
je 0x487df0
call fcn.004ab850
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00566120
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00565460
add esp, 8
push 0
call fcn.00442d80
push eax
call fcn.00565480
add esp, 8
push 0
call fcn.00442d80
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00565950
add esp, 0xc
cmp ebx, 0x20
jne 0x487e5d
mov eax, dword [esp + 0x1c]
push 0
push 0x100
push eax
call fcn.005659e0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00565920
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.00565200
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x90]
add esp, 4
push eax
push ecx
call fcn.00565480
mov eax, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x487ea0
push eax
call fcn.00565420
add esp, 4
test esi, esi
je 0x487974
mov esi, dword [ebp + 8]
jmp 0x48796f