Function at 0x4ed39c
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffb10
mov esi, eax
mov dl, 1
mov eax, dword [0x4ea408]
call fcn.004eb788
mov dword [esp + 0x18], eax
mov eax, dword [0x5d2894]
push eax
mov eax, dword [0x5d2890]
push eax
mov eax, dword [0x5d288c]
push eax
mov eax, dword [0x5d2888]
push eax
call sub.gdi32.dll_CreateEllipticRgn
mov dword [esp], eax
mov eax, dword [0x5d2894]
sub eax, 0x14
push eax
mov eax, dword [0x5d2890]
sub eax, 0x14
push eax
mov eax, dword [0x5d288c]
add eax, 0x14
push eax
mov eax, dword [0x5d2888]
add eax, 0x14
push eax
call sub.gdi32.dll_CreateEllipticRgn
mov dword [esp + 4], eax
push 2
push 2
push 0
push 0
call sub.gdi32.dll_CreateRectRgn
mov dword [esp + 8], eax
push 4
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_CombineRgn
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x3ff00000
mov dword [esp + 0x78], 0xe147ae14
mov dword [esp + 0x7c], 0x3fde147a
xor ebx, ebx
lea edi, [esp + 0x80]
mov dword [esp + 0x4c8], ebx
fild dword [esp + 0x4c8]
fdiv dword [0x4eda50]
fstp qword [esp + 0x68]
wait
lea edx, [esp + 0x68]
mov eax, dword [esp + 0x18]
call fcn.004eb844
mov eax, dword [esp + 0x18]
mov dx, word [eax + 4]
mov word [edi], dx
mov dl, byte [eax + 6]
mov byte [edi + 2], dl
inc ebx
add edi, 3
cmp ebx, 0x168
jne 0x4ed453
mov eax, dword [0x5d2888]
add eax, 0x62
mov dword [esp + 0x10], eax
mov eax, dword [0x5d2888]
add eax, 0x62
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], 0x5c28f5c3
mov dword [esp + 0x74], 0x3fedc28f
mov dword [esp + 0x78], 0xe147ae14
mov dword [esp + 0x7c], 0x3fde147a
cmp dword [esi + 0x40], 0
je 0x4ed6f6
mov eax, dword [esi + 0x40]
cmp byte [eax + 0x68], 0
jne 0x4ed6f6
mov edx, 0x4eda5c
mov eax, dword [esi + 0x40]
call fcn.004b273c
inc eax
je 0x4ed6f6
mov edx, 0x4eda5c
mov eax, dword [esi + 0x40]
call fcn.004b273c
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 0x90]
mov edx, dword [esp + 0x1c]
call fcn.00419afc
mov ebx, eax
mov edx, dword [ebx + 8]
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 0x78]
call fcn.00419afc
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x4c]
push eax
lea eax, [esp + 0x4bc]
push eax
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x48]
xor edx, edx
xor eax, eax
call fcn.004184c0
lea eax, [ebx + 0x40]
call fcn.0049c494
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x40]
call fcn.0049c4b0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x4b8]
call fcn.0049c494
mov dword [esp + 0x28], eax
lea eax, [esp + 0x4b8]
call fcn.0049c4b0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
test eax, eax
jl 0x4ed762
inc eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x3c]
test edi, edi
jl 0x4ed6e6
inc edi
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x30]
imul dword [esp + 0x20]
add eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x28]
jle 0x4ed5f0
sub eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
jmp 0x4ed5f6
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
imul dword [esp + 0x24]
add eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x2c]
jle 0x4ed61e
mov eax, dword [esp + 0x34]
imul dword [esp + 0x24]
add eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
jmp 0x4ed624
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x4c]
sub eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x4d0]
push eax
mov ecx, dword [ebx + 0x10]
add ecx, dword [ebx + 0x48]
sub ecx, dword [esp + 0x48]
mov edx, dword [ebx + 0x14]
add edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x40]
call fcn.004184c0
lea eax, [esp + 0x4cc]
push eax
mov eax, dword [esp + 0x38]
imul dword [esp + 0x28]
add eax, dword [esp + 0x4c0]
add eax, dword [esp + 0x28]
sub eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x4e4]
push eax
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x4c4]
add ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
imul edx, dword [esp + 0x30]
add edx, dword [esp + 0x4c8]
mov eax, dword [esp + 0x3c]
imul eax, dword [esp + 0x2c]
add eax, dword [esp + 0x4c4]
call fcn.004184c0
lea eax, [esp + 0x4e0]
push eax
mov eax, dword [esp + 0x50]
call fcn.0042b6c0
push eax
mov eax, dword [esi + 0xb0]
call fcn.004378c8
pop ecx
pop edx
call fcn.00426a64
inc dword [esp + 0x34]
dec edi
jne 0x4ed5d4
inc dword [esp + 0x30]
dec dword [esp + 0x4c]
jne 0x4ed5bf
jmp 0x4ed762
mov eax, 0xff00000f
call fcn.00425864
push eax
mov eax, dword [esi + 0xb0]
call fcn.004378c8
mov eax, dword [eax + 0x10]
pop edx
call fcn.00426234
mov eax, 0xff00000f
call fcn.00425864
push eax
mov eax, dword [esi + 0xb0]
call fcn.004378c8
mov eax, dword [eax + 0x14]
pop edx
call fcn.00426534
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x48]
push eax
push 0
push 0
mov eax, dword [esi + 0xb0]
call fcn.004378c8
call fcn.00427194
push eax
call sub.gdi32.dll_Rectangle
mov eax, dword [0x5d2894]
dec eax
test eax, eax
jl 0x4ed899
inc eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x168]
call fcn.0042909c
mov edx, dword [0x5d288c]
add edx, dword [esp + 0xc]
call fcn.0042b830
mov ebp, eax
mov edi, dword [0x5d2894]
dec edi
test edi, edi
jl 0x4ed88b
inc edi
xor ebx, ebx
mov eax, dword [0x5d288c]
add eax, dword [esp + 0xc]
push eax
mov eax, dword [0x5d2888]
add eax, ebx
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdi32.dll_PtInRegion
test eax, eax
je 0x4ed883
fild dword [esp + 0x10]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0
fild dword [esp + 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
fild dword [esp + 0x2c]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov dword [esp + 0x4e8], ebx
fild dword [esp + 0x4e8]
add esp, 0xfffffff8
fstp qword [esp]
wait
fild dword [esp + 0x34]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.004ecf14
call fcn.00402bcc
cmp eax, 0x168
jne 0x4ed82f
xor eax, eax
mov edx, 0x167
sub edx, eax
mov eax, edx
mov edx, dword [esi + 0xb4]
add edx, ebx
shl edx, 2
lea ecx, [eax + eax*2]
mov cl, byte [esp + ecx + 0x82]
mov byte [ebp + edx], cl
mov edx, dword [esi + 0xb4]
add edx, ebx
shl edx, 2
lea ecx, [eax + eax*2]
mov cl, byte [esp + ecx + 0x81]
mov byte [ebp + edx + 1], cl
mov edx, dword [esi + 0xb4]
add edx, ebx
shl edx, 2
lea eax, [eax + eax*2]
mov al, byte [esp + eax + 0x80]
mov byte [ebp + edx + 2], al
inc ebx
dec edi
jne 0x4ed7b1
inc dword [esp + 0xc]
dec dword [esp + 0x4c]
jne 0x4ed77d
mov edx, dword [esi + 0xc0]
mov eax, dword [esp + 0x18]
call fcn.004eb8e4
mov eax, dword [esp + 0x18]
push esi
lea esi, [eax + 8]
lea edi, [esp + 0x54]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x5d287c]
mov edx, dword [0x5d2884]
sub edx, eax
jl 0x4ed9da
inc edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x168]
call fcn.0042909c
mov edx, dword [esp + 0xc]
call fcn.0042b830
mov ebp, eax
mov eax, dword [esp + 0xc]
sub eax, dword [0x5d287c]
mov dword [esp + 0x4c8], eax
fild dword [esp + 0x4c8]
mov eax, dword [0x5d2884]
sub eax, dword [0x5d287c]
mov dword [esp + 0x4ec], eax
fild dword [esp + 0x4ec]
fdivp st(1)
fstp qword [esp + 0x60]
wait
mov ebx, dword [0x5d2878]
mov edi, dword [0x5d2880]
sub edi, ebx
jl 0x4ed9cc
inc edi
mov edx, ebx
mov eax, dword [0x5d2878]
sub edx, eax
mov dword [esp + 0x4c8], edx
fild dword [esp + 0x4c8]
mov edx, dword [0x5d2880]
sub edx, eax
mov dword [esp + 0x4ec], edx
fild dword [esp + 0x4ec]
fdivp st(1)
fstp qword [esp + 0x58]
wait
lea edx, [esp + 0x50]
mov eax, dword [esp + 0x18]
call fcn.004eb844
mov eax, dword [esi + 0xb8]
add eax, ebx
shl eax, 2
mov edx, dword [esp + 0x18]
mov dl, byte [edx + 6]
mov byte [ebp + eax], dl
mov eax, dword [esi + 0xb8]
add eax, ebx
shl eax, 2
mov edx, dword [esp + 0x18]
mov dl, byte [edx + 5]
mov byte [ebp + eax + 1], dl
mov eax, dword [esi + 0xb8]
add eax, ebx
shl eax, 2
mov edx, dword [esp + 0x18]
mov dl, byte [edx + 4]
mov byte [ebp + eax + 2], dl
inc ebx
dec edi
jne 0x4ed941
inc dword [esp + 0xc]
dec dword [esp + 0x4c]
jne 0x4ed8d8
mov eax, dword [esi + 0xb0]
call fcn.004378c8
mov eax, dword [eax + 0x10]
mov edx, 0xffffff
call fcn.00426234
mov eax, dword [esi + 0xb0]
call fcn.004378c8
mov eax, dword [eax + 0x10]
mov dl, 0xe
call fcn.00426314
mov eax, dword [esi + 0xb0]
call fcn.004378c8
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00426650
mov eax, esi
call fcn.004edc14
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x168]
call fcn.0042909c
mov dl, 1
call fcn.00428a34
mov eax, dword [esp + 0x18]
call fcn.004035e4
add esp, 0x4f0
pop ebp
pop edi
pop esi
pop ebx
ret