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

Disassembly:
push 0xffffffffffffffff
push 0x48695c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x50]
xor ebx, ebx
mov eax, dword [esi + 0x44]
push ecx
push eax
mov dword [esp + 0x58], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x58]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0xa8], ebx
jle 0x431cca
push edi
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + ebp*4]
lea eax, [eax + ebp*4]
cmp word [ecx + 0x10], bx
je 0x431cbd
mov edx, ecx
mov word [edx + 0x10], bx
mov eax, dword [0x4a6058]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x54]
mov byte [esp + 0xac], 1
mov eax, dword [ecx + ebp*4]
lea ecx, [ecx + ebp*4]
mov edi, dword [eax + 4]
mov edx, dword [eax + 0xc]
sub edx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edx
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], edx
fild dword [esp + 0x30]
sub eax, edx
mov dword [esp + 0x38], eax
xor eax, eax
fild dword [esp + 0x38]
fild dword [esp + 0x1c]
fild dword [esp + 0x34]
fstp dword [esp + 0x90]
fstp dword [esp + 0x94]
fstp dword [esp + 0x98]
fstp dword [esp + 0x9c]
mov edx, dword [ecx]
mov ax, word [edx + 0x12]
sub eax, 2
je 0x431b1b
mov dx, word [edx + 0x14]
cmp dx, 1
je 0x4317c1
cmp dx, 2
je 0x4317c1
cmp dx, 3
je 0x4317c1
cmp dx, 5
jne 0x431738
push str.GAME
push ebx
push 2
lea edx, [esp + 0x50]
push str.game_l.png
push edx
call fcn.00436630
add esp, 0x14
test eax, eax
je 0x431cad
mov eax, dword [esi + 0x54]
mov eax, dword [eax + ebp*4]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], edi
sub eax, edi
mov edi, dword [esp + 0x44]
sub ecx, edx
cmp edi, ebx
je 0x431704
mov edi, dword [edi + 4]
jmp 0x431706
xor edi, edi
push ecx
mov ecx, dword [esp + 0x20]
push eax
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edi
push edx
call sub.gdiplus.dll_GdipDrawImageRectI
cmp eax, ebx
je 0x431721
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x431cad
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x431cad
cmp dx, 6
jne 0x431cad
push str.GAME
push ebx
push 2
lea ecx, [esp + 0x84]
push 0x4a36d8
push ecx
call fcn.00436630
add esp, 0x14
test eax, eax
je 0x431cad
mov edx, dword [esi + 0x54]
mov eax, dword [edx + ebp*4]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], edi
sub eax, edi
mov edi, dword [esp + 0x78]
sub ecx, edx
cmp edi, ebx
je 0x43178d
mov edi, dword [edi + 4]
jmp 0x43178f
xor edi, edi
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
push edi
push ecx
call sub.gdiplus.dll_GdipDrawImageRectI
cmp eax, ebx
je 0x4317aa
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
je 0x431cad
mov edx, dword [ecx]
push 1
call dword [edx]
jmp 0x431cad
mov eax, dword [ecx]
mov ax, word [eax + 0x14]
cmp ax, 1
jne 0x4317d4
push 0x4a3604
jmp 0x4317e6
cmp ax, 2
jne 0x4317e1
push 0x4a3600
jmp 0x4317e6
push 0x4a36d4
lea ecx, [esp + 0x1c]
call fcn.0047b2b9
push 6
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], 0x48ab14
call fcn.0041a4f0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], 0x48ab1c
push ecx
push 0xff262626
mov dword [esp + 0x74], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0xc0], 3
push eax
call sub.gdiplus.dll_GdipFillRectangleI
push eax
lea ecx, [esp + 0x14]
call fcn.004448c0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
push ecx
push ebx
push str.Century_Gothic
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov edi, dword [esp + 0x3c]
cmp eax, ebx
mov byte [esp + 0xac], 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], eax
je 0x4318b3
call fcn.0041a5f0
mov edi, dword [eax]
call fcn.0041a5f0
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4318b3
mov edx, dword [esp + 0x3c]
push edx
jmp 0x43190a
lea eax, [esp + 0x20]
push eax
push 3
push 1
push 0x42c80000
push edi
call sub.gdiplus.dll_GdipCreateFont
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x431905
call fcn.0041a5f0
mov edi, dword [eax]
call fcn.0041a5f0
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4318ed
mov ecx, dword [esp + 0x3c]
push ecx
jmp 0x43190a
lea edx, [esp + 0x20]
push edx
push 3
push 1
push 0x42c80000
push edi
call sub.gdiplus.dll_GdipCreateFont
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
mov edi, 0x48ab14
push 6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb0], 5
mov dword [esp + 0x5c], edi
call fcn.0041a4f0
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], 0x48ab1c
push ecx
push 0xff343434
mov dword [esp + 0x58], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x50]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x5c], edx
push eax
push ebx
push ebx
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
mov ecx, dword [esp + 0x28]
push 1
push ecx
mov dword [esp + 0x34], eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x43197a
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x28]
push 1
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x43198e
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x58]
neg eax
mov edx, dword [esp + 0x28]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x28]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
lea edx, [esp + 0x24]
neg edx
sbb edx, edx
lea eax, [esp + 0x94]
and edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push edx
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push ecx
push edx
call sub.gdiplus.dll_GdipDrawString
cmp eax, ebx
je 0x4319da
mov dword [esp + 0x14], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x64], ebx
push eax
push ebx
push 0x3f800000
push 0xff2c3f4e
call sub.gdiplus.dll_GdipCreatePen1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + ebp*4]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x68]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431a20
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
push ecx
push edx
mov edx, dword [esp + 0x6c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431a49
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], ebx
push ecx
push ebx
push 0x3f800000
push 0xff8da0ae
call sub.gdiplus.dll_GdipCreatePen1
mov edx, dword [esi + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + ebp*4]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push edx
push ecx
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431a90
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x54]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
push ecx
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431ab9
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
push 1
mov eax, dword [edx + ebp*4]
push eax
push ecx
call dword [0x48a51c]
mov edx, dword [esp + 0x48]
push edx
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x64]
push eax
call sub.gdiplus.dll_GdipDeletePen
mov ecx, dword [esp + 0x28]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x58], edi
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x20]
push eax
call sub.gdiplus.dll_GdipDeleteFont
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x84], edi
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
jmp 0x431cad
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
add edx, 0x1c
push edx
call fcn.0047b269
mov edi, dword [esp + 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0xa0], eax
cmp eax, ebx
mov byte [esp + 0xac], 2
je 0x431b55
push ebx
push edi
mov ecx, eax
call fcn.0042e7a0
mov edi, eax
jmp 0x431b57
xor edi, edi
cmp edi, ebx
mov byte [esp + 0xac], 1
je 0x431cad
mov eax, dword [edi + 8]
mov dword [edi + 8], ebx
cmp eax, ebx
jne 0x431cad
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.0042e760
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], ebx
push eax
push ebx
push 0x3f800000
push 0xff2c3f4e
call sub.gdiplus.dll_GdipCreatePen1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + ebp*4]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x80]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431be7
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
push ecx
push edx
mov edx, dword [esp + 0x84]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431c13
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], ebx
push ecx
push ebx
push 0x3f800000
push 0xff8da0ae
call sub.gdiplus.dll_GdipCreatePen1
mov edx, dword [esi + 0x54]
mov dword [esp + 0x74], eax
mov eax, dword [edx + ebp*4]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push edx
push ecx
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431c5a
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x54]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
push ecx
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x80]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawLineI
cmp eax, ebx
je 0x431c86
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
push 1
mov eax, dword [edx + ebp*4]
push eax
push ecx
call dword [0x48a51c]
mov edx, dword [esp + 0x70]
push edx
call sub.gdiplus.dll_GdipDeletePen
mov eax, dword [esp + 0x7c]
push eax
call sub.gdiplus.dll_GdipDeletePen
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], bl
call fcn.0047b122
mov eax, dword [esi + 0x58]
inc ebp
cmp ebp, eax
jl 0x431605
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0xa0]
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret