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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x2c], edx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], edx
mov byte [edi], 1
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], eax
jle 0x477750
jmp 0x4773ba
xor edx, edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edi, dword [eax + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
cmp edi, edx
je 0x477412
mov ecx, dword [edi]
mov edx, dword [esi + 0x3c]
cmp ecx, edx
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], ecx
jg 0x4773f0
lea edi, [eax + ecx]
sub edx, ecx
mov dword [esi + 0x40], edi
mov edi, dword [esp + 0x24]
mov dword [esi + 0x3c], edx
jmp 0x4773fb
mov edx, dword [esi + 0x4c]
lea eax, [edx + 1]
add edx, ecx
mov dword [esi + 0x4c], edx
push 1
push 0
push eax
push edi
push esi
mov dword [esp + 0x24], eax
call fcn.00457640
add esp, 0x14
xor edx, edx
jmp 0x47741a
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0xc], edx
jl 0x47749d
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x74]
lea edi, [ecx + 1]
mov dword [eax + 0x74], edi
lea edi, [ecx - 1]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
test ecx, edi
jne 0x477466
mov edi, dword [eax + 0x78]
mov esi, dword [eax]
lea ecx, [ecx*8 + 4]
push edx
push ecx
call fcn.00424150
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov esi, dword [ebp + 8]
mov dword [edx + 0x78], eax
add esp, 8
mov eax, edx
xor edx, edx
mov eax, dword [eax + 0x78]
cmp eax, edx
je 0x477474
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [esp + 0xc]
or eax, 0xffffffff
sub eax, ecx
mov ecx, dword [esp + 0x10]
push ecx
push 1
push eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
push eax
mov edi, esi
call fcn.00471370
mov edi, dword [esp + 0x34]
add esp, 0x10
xor edx, edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
test byte [eax + 2], 0x20
je 0x47759e
mov edi, dword [edi + 4]
xor esi, esi
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x20], ecx
jge 0x477517
mov edx, dword [ebp + 8]
mov ecx, dword [edi]
push edx
call fcn.00453470
inc dword [esp + 0x24]
mov esi, eax
add esp, 4
add edi, 0x18
test esi, esi
je 0x4774b7
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
xor edi, edi
cmp edx, edi
jne 0x4774fb
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x24], edi
je 0x4774fb
inc dword [eax + 0x4c]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x1c], edx
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x477525
push edi
push edi
push edx
push 0x22
mov eax, ebx
call fcn.00440c50
add esp, 0x10
jmp 0x47754f
test esi, esi
jne 0x4774dc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
jmp 0x4774df
mov edi, dword [ebx + 4]
lea eax, [ecx + 1]
mov dword [ebx + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
xor edi, edi
mov byte [eax], 0x22
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, ecx
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
je 0x477565
mov ecx, esi
mov eax, 0xfffffffc
call fcn.00441340
jmp 0x47759b
cmp eax, edi
jge 0x47756d
mov eax, dword [ebx + 0x20]
dec eax
mov edx, dword [ebx + 4]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
lea eax, [edx + ecx*4]
je 0x477590
push esi
push eax
mov eax, 0xfffffffc
mov ecx, ebx
call fcn.00441530
add esp, 8
jmp 0x47759b
cmp esi, edi
je 0x47759b
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfc
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 4]
mov edx, dword [eax + 8]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], ecx
mov dword [esp + 0x24], edi
jg 0x4775d0
mov ecx, dword [esp + 0x10]
push edx
push ecx
push 0
push 0x8f
mov eax, ebx
call fcn.00440c50
add esp, 0x10
jmp 0x477608
mov edi, dword [ebx + 4]
lea eax, [ecx + 1]
mov dword [ebx + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x10]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x24]
mov byte [eax], 0x8f
mov byte [eax + 3], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
je 0x47761e
mov ecx, edi
mov eax, 0xfffffffb
call fcn.00441340
jmp 0x477654
test eax, eax
jge 0x477626
mov eax, dword [ebx + 0x20]
dec eax
mov edx, dword [ebx + 4]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
lea eax, [edx + ecx*4]
je 0x477649
push edi
push eax
mov eax, 0xfffffffb
mov ecx, ebx
call fcn.00441530
add esp, 8
jmp 0x477654
test edi, edi
je 0x477654
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfb
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
jne 0x47766d
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 4]
lea ecx, [eax + eax*4]
mov al, byte [esp + 0x14]
mov byte [edx + ecx*4 - 0x11], al
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
call fcn.00456230
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 8]
add esp, 4
push edi
call fcn.00456230
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, dword [esi + 0x3c]
jle 0x4776a1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4776cf
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x4776c1
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov eax, dword [ebx + 0x20]
dec eax
mov edx, esi
mov dword [ecx + 0x60], eax
call fcn.004564b0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
add dword [esp + 0xc], 0x10
inc eax
cmp eax, dword [ecx + 0x2c]
mov dword [esp + 0x18], eax
jl 0x4773b8
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x47774e
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x477719
push 0
push 0
push edx
push 0x2d
mov eax, ebx
call fcn.00440c50
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esp, 0x10
mov dword [esp + 0x2c], eax
jmp 0x477750
mov esi, dword [ebx + 4]
mov edi, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [ebx + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
mov esi, dword [ebp + 8]
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax], 0x2d
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x477750
mov edi, ecx
mov edx, esi
call fcn.004564b0
cmp dword [edi + 0x24], 0
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], 0
jle 0x477798
add eax, 0x14
mov dword [esp + 0x20], eax
jmp 0x477775
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 4]
mov edx, dword [eax]
push ecx
push edx
push esi
call fcn.00457580
mov eax, dword [esp + 0x24]
add dword [esp + 0x2c], 0x18
inc eax
add esp, 0xc
cmp eax, dword [edi + 0x24]
mov dword [esp + 0x18], eax
jl 0x477771
mov edx, esi
mov byte [edi], 0
call fcn.004564b0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4777e1
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
dec ecx
mov dword [edx + 0x60], ecx
mov ecx, dword [ebx + 0x20]
test eax, eax
jge 0x4777be
lea eax, [ecx - 1]
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
je 0x4777d5
mov eax, 0x550118
mov dword [eax + 8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret