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

Disassembly:
push 0xffffffffffffffff
push 0x4f7f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
lea edi, [esi + 0x78]
mov dword [esi + 8], eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x98]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ecx
mov dword [esp + 0x84], ebp
je 0x4d3dca
cmp dword [eax - 0xc], ebp
jge 0x4d3d9d
mov edx, dword [0x50a0e4]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4d3da2
cmp dword [ecx - 0xc], ebp
jge 0x4d3db0
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, edi
call fcn.00402200
jmp 0x4d3dca
mov ecx, edi
call fcn.004020f0
mov eax, dword [esp + 0x98]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [0x4f9310]
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov eax, dword [0x50a0e0]
mov dword [esp + 0x8c], eax
lea ecx, [esp + 0x90]
push 0x514e04
push ecx
mov ecx, dword [esp + 0x9c]
mov byte [esp + 0x8c], 1
call fcn.004083f0
mov edi, eax
mov ecx, dword [esi + 0x58]
mov eax, dword [edi]
lea ebx, [esi + 0x58]
cmp ecx, eax
mov byte [esp + 0x84], 2
je 0x4d3e4d
cmp dword [ecx - 0xc], ebp
jge 0x4d3e25
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d3e2a
cmp dword [eax - 0xc], ebp
jge 0x4d3e38
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, ebx
call fcn.00402200
jmp 0x4d3e4d
mov ecx, ebx
call fcn.004020f0
mov edi, dword [edi]
mov dword [ebx], edi
add edi, 0xfffffff4
push edi
call dword [0x4f9310]
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d3e8a
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d3e8a
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x90]
push eax
call fcn.004c8e50
mov ebp, eax
mov ecx, dword [esi + 4]
mov eax, dword [ebp]
lea edi, [esi + 4]
cmp ecx, eax
mov byte [esp + 0x84], 3
je 0x4d3ef4
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d3ec9
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d3ed0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d3ede
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, edi
call fcn.00402200
jmp 0x4d3ef4
mov ecx, edi
call fcn.004020f0
mov ebp, dword [ebp]
mov dword [edi], ebp
add ebp, 0xfffffff4
push ebp
call dword [0x4f9310]
mov eax, dword [esp + 0x90]
mov ecx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4d3f31
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d3f31
mov eax, dword [esp + 0x90]
add eax, 0xfffffff4
push eax
call fcn.004dcaa6
add esp, 4
mov edi, 0x51a1a8
mov eax, dword [edi]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.004de8b5
add esp, 8
test eax, eax
je 0x4d3f55
add edi, 8
cmp edi, str.pause
jl 0x4d3f36
jmp 0x4d3f5b
mov ecx, dword [edi + 4]
mov dword [esi + 0x64], ecx
mov ebx, dword [esp + 0x94]
lea edx, [esp + 0x90]
push str.offsetx
push edx
mov ecx, ebx
call fcn.004083f0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 4
je 0x4d3fbd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d3fa1
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d3fac
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d406c
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x94]
call fcn.00402200
mov ebp, dword [0x4f9310]
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d4000
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d4000
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004dd24b
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x6c], eax
push str.offsety
push ecx
mov ecx, ebx
call fcn.004083f0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 5
je 0x4d40ad
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d4052
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d4059
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d4092
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00402200
jmp 0x4d40ad
lea ecx, [esp + 0x8c]
call fcn.004020f0
mov edi, dword [edi]
mov ebp, dword [0x4f9310]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
jmp 0x4d3fc3
lea ecx, [esp + 0x8c]
call fcn.004020f0
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d40ea
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d40ea
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004dd24b
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x70], eax
push str.width
push ecx
mov ecx, ebx
call fcn.004083f0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 6
je 0x4d4171
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d413c
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d4143
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d4156
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00402200
jmp 0x4d4171
lea ecx, [esp + 0x8c]
call fcn.004020f0
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d41ae
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d41ae
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004dd24b
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x50], eax
push str.height
push ecx
mov ecx, ebx
call fcn.004083f0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 7
je 0x4d4235
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d4200
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d4207
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d421a
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00402200
jmp 0x4d4235
lea ecx, [esp + 0x8c]
call fcn.004020f0
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d4272
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d4272
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004dd24b
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x54], eax
push str.zorder
push ecx
mov ecx, ebx
call fcn.004083f0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 8
je 0x4d42f9
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d42c4
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d42cb
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d42de
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00402200
jmp 0x4d42f9
lea ecx, [esp + 0x8c]
call fcn.004020f0
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d4336
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d4336
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004dd24b
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x7c], eax
push str.stretchx
push ecx
mov ecx, ebx
call fcn.004083f0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 9
je 0x4d43bd
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d4388
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d438f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d43a2
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00402200
jmp 0x4d43bd
lea ecx, [esp + 0x8c]
call fcn.004020f0
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d43fa
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d43fa
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004dd24b
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esi + 0x84], eax
push str.stretchy
push ecx
mov ecx, ebx
call fcn.004083f0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
mov byte [esp + 0x84], 0xa
je 0x4d4484
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4d444f
mov edx, dword [0x50a0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4d4456
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4d4469
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.00402200
jmp 0x4d4484
lea ecx, [esp + 0x8c]
call fcn.004020f0
mov edi, dword [edi]
mov dword [esp + 0x8c], edi
add edi, 0xfffffff4
push edi
call ebp
mov eax, dword [esp + 0x90]
mov edx, dword [0x50a0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d44b9
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d44b9
mov edx, dword [esp + 0x90]
lea eax, [edx - 0xc]
push eax
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x8c]
push eax
call fcn.004dd24b
mov dword [esi + 0x88], eax
mov ecx, dword [0x50a0e0]
add esp, 4
mov dword [esp + 0x90], ecx
xor eax, eax
mov word [esp + 0x28], ax
mov bl, 0xc
push str.rect
lea ecx, [esp + 0x3c]
mov byte [esp + 0x88], bl
mov word [esp + 0x3c], ax
call fcn.004067a0
mov edi, dword [esp + 0x94]
lea edx, [esp + 0x28]
lea eax, [esp + 0x38]
push edx
push eax
push str.getAttribute
lea ecx, [edi + 4]
mov byte [esp + 0x90], 0xd
call fcn.004067f0
mov ebp, dword [0x4f936c]
lea ecx, [esp + 0x38]
push ecx
mov dword [edi], eax
mov byte [esp + 0x88], bl
call ebp
cmp dword [edi], 0
jl 0x4d45ab
cmp word [esp + 0x28], 8
jne 0x4d45ab
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4d45ab
push eax
lea ecx, [esp + 0x14]
call fcn.00406b10
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x88], 0xe
call fcn.004022b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], bl
call fcn.004021d0
lea ecx, [esp + 0x90]
call fcn.00407ab0
lea ecx, [esp + 0x90]
call fcn.004079c0
mov edx, dword [esp + 0x90]
push edx
call fcn.004dd24b
add esp, 4
mov edi, eax
jmp 0x4d45ae
or edi, 0xffffffff
lea eax, [esp + 0x28]
push eax
call ebp
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.004021d0
xor ebx, ebx
cmp edi, ebx
jle 0x4d45d5
mov dword [esi + 0x80], edi
mov edi, dword [esp + 0x94]
lea ecx, [esp + 0x90]
push str.horizontal
push ecx
mov ecx, edi
call fcn.004083f0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0xf
call fcn.004022b0
mov eax, dword [esp + 0x90]
mov ecx, dword [0x50a0e4]
mov byte [esp + 0x84], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4d4642
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x4d4642
mov eax, dword [esp + 0x90]
add eax, 0xfffffff4
push eax
call fcn.004dcaa6
add esp, 4
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx - 8]
cmp eax, ebx
jle 0x4d46a9
push str.left
push ecx
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d4667
mov dword [esi + 0xc], ebx
jmp 0x4d46a9
mov ecx, dword [esp + 0x8c]
push str.right
push ecx
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d4689
mov dword [esi + 0xc], 1
jmp 0x4d46a9
mov edx, dword [esp + 0x8c]
push str.center
push edx
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d46a9
mov dword [esi + 0xc], 2
lea eax, [esp + 0x90]
push str.vertical
push eax
mov ecx, edi
call fcn.004083f0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x10
call fcn.004022b0
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.004021d0
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx - 8]
cmp eax, ebx
jle 0x4d474d
push 0x50b7e8
push ecx
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d470b
mov dword [esi + 0x10], ebx
jmp 0x4d474d
mov ecx, dword [esp + 0x8c]
push str.bottom
push ecx
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d472d
mov dword [esi + 0x10], 1
jmp 0x4d474d
mov edx, dword [esp + 0x8c]
push str.center
push edx
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d474d
mov dword [esi + 0x10], 2
lea eax, [esp + 0x90]
push str.bmpfill
push eax
mov ecx, edi
call fcn.004083f0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x11
call fcn.004022b0
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.004021d0
mov eax, dword [esp + 0x8c]
cmp dword [eax - 8], ebx
jle 0x4d47ba
push str.bmpcopy
push eax
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d47b4
mov dword [esi + 0xa8], 1
jmp 0x4d47ba
mov dword [esi + 0xa8], ebx
push ebx
push str.fullnoshow
mov ecx, edi
call fcn.004089b0
push ebx
push str.generalnoshow
mov ecx, edi
mov dword [esi + 0x98], eax
call fcn.004089b0
lea ecx, [esp + 0x90]
push str.image
push ecx
mov ecx, edi
mov dword [esi + 0x9c], eax
call fcn.004083f0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x12
call fcn.004022b0
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 1
call fcn.004021d0
mov edx, dword [esp + 0x8c]
cmp dword [edx - 8], ebx
jle 0x4d4b05
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x4d483e
push 1
call fcn.004c65d0
mov dword [esi + 0x18], ebx
mov eax, dword [0x50a0e0]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [esi + 0x78]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x5143d4
push eax
mov byte [esp + 0x94], 0x13
call fcn.004073f0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x2050
push 0
push 0
push 0
push ecx
push 0
call dword [0x4f95b0]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x4d4aeb
lea edx, [esp + 0x38]
push edx
push 0x18
push ebx
call dword [0x4f90d0]
push 4
call fcn.004dcb8f
add esp, 4
test eax, eax
je 0x4d48b7
mov dword [eax], 0
jmp 0x4d48b9
xor eax, eax
mov edx, dword [esi + 8]
mov dword [esi + 0x18], eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x50]
push edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], 0x28
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov word [esp + 0x60], 1
mov word [esp + 0x62], 0x20
mov dword [esp + 0x64], 0
call dword [0x4f949c]
mov ecx, dword [esi + 0x18]
lea ebp, [esi + 0x20]
push 0
mov edi, eax
push 0
push ebp
lea eax, [esp + 0x5c]
push 0
push eax
push edi
call fcn.004d5df0
mov edx, dword [ebp]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x50]
push 0
push ecx
push edx
push eax
push 0
push ebx
push edi
call dword [0x4f90b4]
mov edx, dword [ebp]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x50]
push 0
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
push 0
push edi
call fcn.004c7060
lea ecx, [esp + 0x90]
push str.alpha_channel
push ecx
mov ecx, dword [esp + 0x9c]
call fcn.004083f0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x88], 0x14
call fcn.004022b0
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], 0x13
call fcn.004021d0
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4d4ad5
mov edx, dword [esi + 0x78]
push eax
push edx
lea eax, [esp + 0x18]
push 0x5143d4
push eax
call fcn.004073f0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0x2050
push 0
push 0
push 0
push ecx
push 0
call dword [0x4f95b0]
mov ebx, eax
test ebx, ebx
je 0x4d4ad5
push 4
mov dword [esi + 0x1c], 1
call fcn.004dcb8f
add esp, 4
test eax, eax
je 0x4d4a01
mov dword [eax], 0
mov dword [esp + 0x90], eax
jmp 0x4d4a0c
mov dword [esp + 0x90], 0
mov ecx, dword [esp + 0x90]
push ebx
call fcn.004c7030
mov edx, dword [esp + 0x40]
imul edx, dword [esp + 0x3c]
shl edx, 2
push edx
call fcn.004dcb8f
mov ecx, dword [esp + 0x44]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x50]
push 0
push eax
push ebx
push ecx
mov ecx, dword [esp + 0xa0]
push 0
push edi
mov dword [esp + 0x30], ebx
call fcn.004d5e20
mov edx, dword [esp + 0x40]
mov eax, dword [ebp]
imul edx, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x14], ebx
test edx, edx
jle 0x4d4a99
mov edx, ebx
or bl, 0xff
add eax, 4
sub bl, byte [edx]
add edx, 4
mov byte [esp + 0x14], bl
mov ebx, dword [esp + 0x14]
and ebx, 0xff
shl ebx, 0x18
or dword [eax - 4], ebx
mov ebx, dword [esp + 0x40]
imul ebx, dword [esp + 0x3c]
inc ecx
cmp ecx, ebx
jl 0x4d4a68
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x50]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x18]
push edx
push 0
push edi
call fcn.004c7060
test ebx, ebx
je 0x4d4ac1
push ebx
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4d4ad5
push 1
mov ecx, eax
call fcn.004c65d0
mov eax, dword [esi + 8]
push edi
push eax
call dword [0x4f9494]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x4f90f4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 1
call fcn.004021d0
mov edi, dword [esp + 0x94]
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.004673c0
lea edx, [esp + 0x20]
mov ecx, edi
push edx
mov byte [esp + 0x88], 0x15
call fcn.00478c00
lea ecx, [esp + 0x20]
call fcn.004632c0
test eax, eax
jle 0x4d4b3b
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004d4f40
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x4d4ba8
lea edi, [esi + 0x5c]
push edi
call fcn.004bbf50
cmp dword [esi + 0x50], ebx
jne 0x4d4b5b
cmp dword [esi + 0xc], 3
je 0x4d4b5b
mov ecx, dword [edi]
mov dword [esi + 0x50], ecx
cmp dword [esi + 0x54], ebx
jne 0x4d4b6c
cmp dword [esi + 0x10], 3
je 0x4d4b6c
mov edx, dword [esi + 0x60]
mov dword [esi + 0x54], edx
mov eax, dword [esi + 0x58]
push 0x50b7e8
push eax
call fcn.004dd2dd
add esp, 8
test eax, eax
je 0x4d4b96
mov eax, dword [esi + 0x58]
push str.caption
push eax
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4d4ba8
mov eax, dword [esi + 0x60]
mov ecx, dword [0x522218]
cmp ecx, eax
jge 0x4d4ba8
mov dword [0x522218], eax
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
call fcn.0040dfb0
test eax, eax
jbe 0x4d4bdd
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 0x7c]
mov ecx, dword [esi + 0x44]
cmp edx, ecx
jle 0x4d4bd1
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x7c]
mov dword [esi + 0x44], ecx
mov ecx, ebx
inc edi
call fcn.0040dfb0
cmp edi, eax
jb 0x4d4bb8
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 1
call fcn.004282a0
lea ecx, [esp + 0x8c]
call fcn.004021d0
lea ecx, [esp + 0x98]
call fcn.004021d0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x10