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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xec]
cmp eax, 0xf3c
jge 0x49d8d0
inc eax
mov dword [esp + 0x24], edi
mov dword [edi + 0xec], eax
cmp eax, 1
je 0x4796a3
cmp byte [edi + 0xfc], 0
mov byte [edi + 0x144], 0
jne 0x4794a9
lea ebx, [ebx]
cmp byte [edi + 0x144], 0
jne 0x4794a9
cmp byte [0x4974e3], 0
jne 0x4793ad
cmp byte [0x4a8668], 0
jne 0x49d8ee
mov esi, dword [0x482708]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x78]
push eax
call esi
test eax, eax
jne 0x479643
cmp byte [0x4974e6], 1
je 0x49d916
cmp dword [edi + 0xf8], 1
je 0x49e25e
cmp dword [0x4a8624], 0
jne 0x49d933
cmp byte [0x4974ec], 1
je 0x49d9e3
cmp dword [edi + 0x460], 0
jne 0x49d9fd
cmp byte [0x4a863c], 0
jne 0x49db4e
push edi
call fcn.004792d3
cmp al, 1
je 0x47949c
cmp byte [0x4a87b0], 0
jne 0x49dd77
mov eax, dword [edi + 0xf8]
cmp eax, 7
je 0x49ddf5
cmp eax, 8
je 0x49de60
cmp eax, 9
je 0x49de60
cmp eax, 2
je 0x4795f2
cmp eax, 3
je 0x4795f2
cmp eax, 4
je 0x4795f2
cmp eax, 5
je 0x4795f2
cmp eax, 6
je 0x4795f2
mov ecx, dword [ebp + 8]
mov dword [edi + 0xf4], ecx
mov eax, ecx
inc ecx
mov dword [ebp + 8], ecx
cmp eax, dword [0x4a90f8]
jg 0x49e119
test eax, eax
jle 0x49e119
shl eax, 4
add eax, dword [0x4a912c]
je 0x49e119
mov esi, eax
mov ecx, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
movsx eax, word [edx + 8]
cmp eax, ebx
jne 0x4794d1
lea eax, [ebp + 8]
push eax
push esi
push edi
call fcn.0047b0c3
cmp byte [edi + 0xfc], 0
je 0x479353
mov eax, dword [edi + 0xec]
mov byte [edi + 0x144], 0
cmp eax, 1
je 0x4796ce
dec eax
mov dword [edi + 0xec], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x34
jne 0x479573
lea eax, [esp + 0x47]
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], ebx
call fcn.004797c3
test eax, eax
jne 0x479518
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*4]
cmp word [eax + 8], 0x7f
jne 0x49e1ac
mov esi, dword [esp + 0x54]
cmp esi, ebx
je 0x47953d
mov eax, dword [esi + 0xc]
dec dword [eax]
mov edx, dword [esi + 0xc]
cmp dword [edx], ebx
je 0x49e1c7
push esi
call fcn.004812ff
add esp, 4
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x50]
cmp eax, 8
je 0x49e1e3
cmp eax, 0xa
je 0x49e204
cmp eax, 5
je 0x49e21b
cmp eax, 0xb
je 0x49e229
cmp eax, 0xc
jne 0x47949c
jmp 0x49e247
dec eax
cmp eax, 0x7e
ja case.default.0x479584
movzx eax, byte [eax + 0x409614]
jmp dword [eax*4 + 0x409600]
push 0xa
call dword [0x48215c]
cmp dword [edi + 0x2f0], 0
je 0x479628
mov esi, dword [edi + 0x2f8]
call fcn.0047c743
xor ecx, ecx
cmp edx, ecx
jl 0x479628
mov ebx, ecx
jg 0x4796af
cmp eax, dword [edi + 0x2f0]
jae 0x4796af
mov eax, dword [edi + 0xf8]
cmp eax, 3
jl 0x47949c
jmp 0x49dfe3
cmp dword [esp + 0x6c], 0x12
je 0x49d900
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x4a8630
call fcn.0047d273
test eax, eax
jne 0x47968a
lea edx, [esp + 0x68]
push edx
mov ebx, 0x4a8630
call fcn.0047d293
test eax, eax
jne 0x47968a
lea eax, [esp + 0x68]
push eax
call dword [0x4825b4]
lea ecx, [esp + 0x68]
push ecx
call dword [0x4826c4]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
call esi
test eax, eax
je 0x479393
jmp 0x479643
mov esi, edi
call fcn.00480a63
jmp 0x479339
cmp dword [edi + 0xf8], 2
jne 0x49dfca
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], ebx
jmp 0x47949c
mov esi, edi
call fcn.0047f2b3
cmp byte [edi + 0xfc], 1
je 0x4794c6
mov ebx, edi
call fcn.00471b73
push 0
call dword [0x4826bc]
mov edx, dword [0x497518]
push edx
call dword [0x482608]
mov esi, dword [0x4826b8]
push 0
push 0
push 0
lea eax, [esp + 0x148]
push eax
call esi
test eax, eax
jle 0x4794c6
jmp 0x49e27b