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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x5527f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x118], edx
push esi
push edi
cmp dword [ebx + 0x1808], 3
je 0x48058f
mov edx, 0xc000042a
call fcn.004f437c
test eax, eax
js 0x480c92
push 0xc00000e5
call dword [fcn.00440b24]
mov edi, dword [ebx + 0x18b8]
push 4
push 0x8c
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5552f8]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
jne 0x4805fb
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x104], 0x41ee58
mov dword [ebp - 0x100], 0x420004
mov dword [ebp - 0xfc], 0xd89
and dword [eax], esi
mov esi, 0xc0000017
push esi
mov dword [ebp - 0xf8], 0x420028
call fcn.004f7c89
mov eax, esi
jmp 0x480c92
push 7
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0x58
push eax
mov byte [esi + 0x1c], al
lea eax, [esi + 0x20]
push eax
call fcn.0052cb90
xor eax, eax
add esp, 0xc
mov dword [esi + 0x78], eax
mov ecx, ebx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov byte [esi + 0x88], al
mov eax, dword [ebp - 0x118]
mov dword [eax], esi
call fcn.00478633
mov ecx, ebx
mov al, byte [eax + 0x3c]
mov byte [ebp - 0x119], al
call fcn.00478633
mov ecx, dword [0x40a114]
lea edi, [ebp - 0x10]
push 5
pop esi
mov edx, dword [eax + 0x38]
xor eax, eax
stosd dword es:[edi], eax
push 6
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xac], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xe0], 0x41a110
stosw word es:[edi], ax
mov eax, dword [0x40a118]
pop edi
push 0xf
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xd4], edi
pop edi
push 0xb
pop esi
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd0], 7
mov dword [ebp - 0xcc], 0x41a118
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], 0xe
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], 0x41ffa0
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], 6
mov dword [ebp - 0xa4], 0x420060
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], 0xc
mov dword [ebp - 0x90], 0x418450
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0xa
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x420068
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 0xe
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], 0x420074
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0x11
push 0x12
pop esi
push 0x13
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], esi
pop esi
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 0x18c4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x18c8]
mov dword [ebp - 0x54], 0x420084
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0x420098
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x2c], 0x4200ac
cmp ecx, eax
je 0x4807cd
add eax, 0xfffffff8
cmp eax, ecx
jne 0x4807c0
mov dword [ebx + 0x18c8], eax
xor eax, eax
test edx, edx
mov dword [ebp - 0x120], eax
je 0x480b49
lea ecx, [ebx + 0x904]
push eax
call fcn.00498b56
mov edx, eax
mov dword [ebp - 0x144], edx
cmp byte [edx + 0x48], 0
jne 0x480b2d
cmp byte [edx + 0x49], 0
jne 0x480b2d
mov ecx, dword [edx + 0x14]
lea esi, [ebp - 0x130]
mov eax, dword [edx + 0x10]
lea edi, [ebp - 0x100]
mov dword [ebp - 0x128], eax
mov eax, dword [edx + 4]
and dword [ebp - 0xf4], 0
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x100]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], eax
mov eax, dword [edx]
lea edx, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xf0]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x140]
lea edi, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
push eax
push 0xa
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f3d99
test eax, eax
js 0x480c92
mov eax, dword [ebp - 0xf4]
mov ecx, ebx
cmp eax, 0xa
jae 0x480b09
cmp byte [ebp + eax - 0x10], 0
jne 0x480b3f
mov esi, dword [ebp - 0x144]
sub esp, 0x10
add esi, 0x20
mov byte [ebp + eax - 0x10], 1
mov edi, esp
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f3fe7
test eax, eax
js 0x480c92
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 0x111], 0
cmp eax, 9
ja case.default.0x4808dc
jmp dword [eax*4 + 0x480cb5]
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
lea edx, [ebp - 0x1c]
push dword [esi]
call fcn.004f3f38
test eax, eax
js 0x480c92
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x80], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
add eax, 0x1c
push eax
call fcn.004794c9
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x81], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
add eax, 0x20
push eax
call fcn.004f3f38
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x82], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x30
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x83], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x3c
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x84], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x48
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x85], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x54
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x86], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x60
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x87], 1
jmp 0x480af4
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x111]
push eax
mov ecx, ebx
mov eax, dword [esi]
add eax, 0x6c
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x18b8]
call fcn.004f40e4
test eax, eax
js 0x480c92
mov eax, dword [esi]
mov byte [eax + 0x88], 1
cmp byte [ebp - 0x111], 0
jne 0x480b2d
mov edx, 0xc00000b9
mov ecx, ebx
jmp 0x480577
test byte [ebx + 0x18c0], 2
je 0x480b3f
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.004f4160
test eax, eax
js 0x480c92
mov eax, dword [ebp - 0x120]
inc eax
cmp eax, dword [ebp - 0x148]
jmp 0x4807d1
mov edx, 0xc00000a4
jmp 0x480577
cmp byte [ebp - 0x10], 0
mov ecx, ebx
jne 0x480b5b
mov edx, 0xc0000225
jmp 0x480577
call fcn.004f43a1
test eax, eax
js 0x480c92
and dword [ebp - 0xf4], 0
cmp byte [ebp - 0x119], 0
mov eax, dword [0x40a194]
mov ecx, dword [0x40a198]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0x41a118
jne 0x480c90
jmp 0x480c6b
mov ecx, ebx
call fcn.00478633
mov edx, eax
and dword [ebp - 0x120], 0
lea esi, [ebp - 0x140]
lea edi, [ebp - 0x110]
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 4]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x138], ecx
lea ecx, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], eax
mov eax, dword [edx]
lea edx, [ebp - 0x100]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x130]
lea edi, [ebp - 0x100]
movsd dword es:[edi], dword [esi]
push eax
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f3d99
test eax, eax
js 0x480c92
mov eax, dword [ebp - 0x120]
cmp eax, 1
jae 0x480c38
inc dword [ebp + eax*4 - 0xf4]
mov ecx, ebx
test eax, eax
je 0x480c4e
test byte [ebx + 0x18c0], 2
je 0x480ca1
call fcn.004f4491
jmp 0x480c67
cmp dword [ebp - 0xf4], 1
jne 0x480cab
mov eax, dword [ebp - 0x118]
mov edx, dword [eax]
add edx, 0x78
call fcn.004803b8
test eax, eax
js 0x480c92
cmp dword [ebx + 0x1808], 3
je 0x480ba7
cmp dword [ebx + 0x1808], 4
mov ecx, ebx
jne 0x480572
call fcn.004f43a1
test eax, eax
js 0x480c92
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1d0
leave
ret
mov edx, 0xc0000024
jmp 0x480577
mov edx, 0xc00000bd
jmp 0x480577