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

Disassembly:
push 0xffffffffffffffff
push 0x5207ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
push ebx
push ebp
push esi
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8 + 0x638]
push edi
xor ebp, ebp
mov dword [esp + 0x14], esi
lea ecx, [ecx]
lea ebx, [esp + 0xd0]
mov ecx, esi
call fcn.00483a10
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x480bc8
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x480bc8
mov ecx, esi
call fcn.00483a10
mov eax, dword [eax + 4]
lea edi, [ebp*4]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 0xffffffff
je 0x480bc5
mov ecx, esi
call fcn.00483a10
mov esi, dword [eax + 4]
mov ecx, dword [esp + 0xc8]
add ecx, 0x54
add esi, edi
call fcn.004c7a50
mov edx, dword [esi]
push edx
mov ecx, eax
call fcn.004cab50
mov esi, dword [esp + 0x14]
inc ebp
jmp 0x480b60
mov edi, dword [esp + 0xc8]
mov ecx, dword [edi + 0x144]
test ecx, ecx
jne 0x480beb
mov eax, dword [esp + 0xd0]
xor edx, edx
mov ebx, 0x3e8
div ebx
jmp 0x480bfa
mov eax, 0x10624dd3
mul dword [esp + 0xd0]
shr edx, 6
test ecx, ecx
mov dword [esp + 0x10], edx
jne 0x480eda
mov eax, dword [edi + 0x108]
mov eax, dword [eax + 0x2c]
cmp eax, 5
jne 0x480c1b
mov edi, 6
jmp 0x480c29
xor ecx, ecx
cmp eax, 6
sete cl
lea ecx, [ecx + ecx + 4]
mov edi, ecx
push 0xffffffffffffffff
lea ebx, [esp + 0xd4]
mov ecx, esi
call fcn.00483a10
mov esi, eax
mov eax, edi
call fcn.004836e0
xor edi, edi
jmp 0x480c50
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0xd0]
call fcn.00483a10
mov ecx, dword [eax + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x481010
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x481010
mov ebp, dword [esp + 0xc8]
mov eax, dword [ebp + 0x108]
cmp eax, ebx
je 0x480c9b
cmp dword [eax + 0x2c], 5
jb 0x480c9b
mov esi, 1
jmp 0x480c9d
xor esi, esi
lea edx, [esp + 0x38]
push edx
mov ecx, 1
mov edx, 2
call fcn.004082e0
push 0x53fd80
push esi
push str.table
push str.img_room_show0clothe_
lea eax, [esp + 0x48]
push 0x56b5e8
push eax
mov dword [esp + 0xd8], ebx
call fcn.00408880
add esp, 8
push eax
call fcn.00408880
add esp, 8
push eax
call fcn.00408880
add esp, 8
push eax
call fcn.00450530
push eax
call fcn.00408880
mov eax, dword [esp + 0xd4]
add esp, 8
cmp eax, ebx
jne 0x480d12
push str.malem
lea ecx, [esp + 0x3c]
push ecx
jmp 0x480d1c
push str.female_f
lea edx, [esp + 0x3c]
push edx
call fcn.00408880
mov eax, dword [esp + 0x18]
add esp, 8
push str..png
push edi
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004134f0
push eax
mov cl, 0x5f
call fcn.0046cfc0
add esp, 4
push eax
call fcn.004134f0
push eax
call fcn.00408880
add esp, 8
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x38]
call fcn.00408420
mov esi, eax
lea ecx, [ebp + 0x54]
mov byte [esp + 0xc0], 1
call fcn.004c7a50
mov edx, dword [eax]
push ebx
push esi
mov ecx, eax
call dword [edx + 0x10]
mov esi, eax
mov byte [esp + 0xc0], bl
cmp dword [esp + 0x34], 0x10
jb 0x480d98
mov eax, dword [esp + 0x20]
push eax
call fcn.004fa776
add esp, 4
or ebp, 0xffffffff
cmp esi, ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
je 0x480dc9
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0xd0]
call fcn.00483a10
mov eax, dword [eax + 4]
mov dword [eax + edi*4], esi
xor ebx, ebx
jmp 0x480dd3
cmp dword [esp + 0x10], ebx
jne 0x480e7f
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x84]
mov dword [esp + 0x18], ecx
mov dword [esp + eax + 0x38], 0x53cfc0
mov dword [esp + 0xc0], 2
test byte [esp + 0x7c], 1
mov dword [esp + 0x3c], 0x53ce7c
je 0x480e16
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
push eax
call fcn.004fa776
add esp, 4
mov edx, dword [esp + 0x4c]
mov dword [edx], ebx
mov eax, dword [esp + 0x5c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], ebx
mov edx, dword [esp + 0x50]
mov dword [edx], ebx
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov ecx, dword [esp + 0x70]
mov dword [ecx], ebx
and dword [esp + 0x7c], 0xfffffffe
lea ecx, [esp + 0x3c]
mov dword [esp + 0x78], ebx
call fcn.0040b030
mov dword [esp + 0xc0], ebp
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x38], 0x53ceb0
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x53cee8
call fcn.004c6d90
inc edi
jmp 0x480c50
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x10]
mov ecx, esi
call fcn.00483a10
lea ebx, [esp + 0xd0]
mov ecx, esi
mov edi, eax
call fcn.00483a10
mov esi, eax
mov eax, edi
call fcn.004519b0
lea ecx, [esp + 0x84]
mov dword [esp + 0xc0], ebp
call fcn.004083b0
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x53cee8
call fcn.004c6d90
jmp 0x481010
push 0xffffffffffffffff
lea ebx, [esp + 0xd4]
mov ecx, esi
call fcn.00483a10
mov esi, eax
mov eax, 1
call fcn.004836e0
push 0x56b6f0
lea ecx, [esp + 0x1c]
call fcn.00402030
mov dword [esp + 0xc0], 3
mov ecx, dword [esp + 0x10]
push ecx
push str._04d.png
lea edi, [esp + 0x20]
call fcn.0046d1f0
mov ecx, dword [esp + 0x20]
add esp, 8
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x480f40
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401b10
mov ecx, dword [esp + 0xc8]
add ecx, 0x54
mov byte [esp + 0xc0], 4
call fcn.004c7a50
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call dword [edx + 0x10]
mov esi, eax
mov byte [esp + 0xc0], 3
cmp dword [esp + 0x34], 0x10
jb 0x480f96
mov edx, dword [esp + 0x20]
push edx
call fcn.004fa776
add esp, 4
cmp esi, 0xffffffff
je 0x480fb2
mov ecx, dword [esp + 0x14]
lea ebx, [esp + 0xd0]
call fcn.00483a10
mov eax, dword [eax + 4]
mov dword [eax], esi
jmp 0x480fe7
cmp dword [esp + 0xd0], ebx
je 0x480fe7
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x10]
mov ecx, esi
call fcn.00483a10
lea ebx, [esp + 0xd0]
mov ecx, esi
mov edi, eax
call fcn.00483a10
mov esi, eax
mov eax, edi
call fcn.004519b0
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481010
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret 0xc