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

Disassembly:
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x30], 0
xor byte [eax], al
je 0x4798ca
mov edx, dword [esp]
mov ecx, dword [edx + 0x9c]
cmp ecx, dword [esp + 0xc]
jae 0x47924c
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x20]
add ecx, ecx
mov dword [esp + 0x24], ecx
xor eax, eax
mov dword [esp + 0x4c], eax
jmp 0x479284
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0xc]
xor edx, edx
sal bh, cl
int1
mov dword [esp + 0x20], edx
cmp dword [esp + 0x20], 0
jne 0x479274
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], 1
mov ecx, dword [esp]
cmp dword [ecx + 0x9c], 0
jbe 0x4792e5
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc]
add dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
push ecx
push 0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
push eax
push 0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebx, dword [eax + 4]
mov edx, dword [edx + ecx*4 + 0x48]
xor ecx, ecx
call dword [ebx + 0x20]
and byte [ecx - 0x38d7dbbc], cl
inc esp
and al, 0x48
add dword [eax], eax
add byte [eax], al
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 8]
shl ecx, 3
mov edx, dword [eax + 0x70]
lea ecx, [ecx + ecx*2]
add edx, ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x54]
dec esp
and al, 0x54
movzx eax, word [ecx]
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x54]
movzx ecx, word [edx + 2]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x54]
inc esp
and al, 0x54
movzx edx, word [eax + 0x10]
mov dword [esp + 0x64], edx
mov ecx, dword [esp + 0x54]
movzx eax, word [ecx + 0x20]
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x54]
movzx ecx, word [edx + 0x12]
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x54]
movzx edx, word [eax + 4]
mov dword [esp + 0x60], edx
mov ecx, dword [esp]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x1c0]
add eax, 0x8b000001
dec esp
nop
add al, 0x89
dec esp
and al, 0x44
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + edx*4]
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x28]
mov ecx, edx
mov dword [esp + 0x94], ecx
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jge 0x4798ca
mov edx, dword [esp + 0x94]
mov ecx, dword [edx]
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x48], 0
je 0x4793e3
cmp dword [esp + 0x1c], 0
jne 0x4793e3
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
jmp 0x4793f1
mov edx, dword [esp + 0x94]
mov ecx, dword [edx - 4]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x4c], 0
je 0x47940d
mov eax, dword [esp + 0x20]
dec eax
cmp eax, dword [esp + 0x1c]
jne 0x47940d
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], edx
jmp 0x47941b
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x30]
movsx ecx, word [edx]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x2c]
movsx edx, word [eax]
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x34]
mov esi, edx
movsx edx, word [eax]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], edx
xor eax, eax
mov dword [esp + 0x3c], eax
xor edx, edx
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x1c]
dec eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x14]
ja 0x4798a2
lea edx, [esp + 0x98]
mov ecx, 1
add byte [ebx - 0x17d3dbbc], cl
or al, 0xc8
pop es
add byte [ebx + 0x3b102444], cl
inc esp
and al, 0x14
jae 0x4794d6
mov edx, dword [esp + 0x30]
movsx ecx, word [edx + 0x80]
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x2c]
movsx edx, word [eax + 0x80]
add byte [ecx + 0x802494], cl
add byte [eax], al
mov ecx, dword [esp + 0x34]
movsx eax, word [ecx + 0x80]
mov dword [esp + 0x8c], eax
test byte [esp + ecx*4], ah
add byte [eax], al
invalid
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x479578
cmp word [esp + 0x9a], 0
jne 0x479578
mov ecx, esi
sub ecx, dword [esp + 0x80]
imul ecx, dword [esp + 0x58]
shl ecx, 2
lea ecx, [ecx + ecx*8]
test ecx, ecx
jl 0x47953e
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x479570
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x479570
mov ecx, ebx
mov eax, 1
shl eax, cl
dec eax
jmp 0x479570
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
shl eax, 7
shl edx, 8
or byte [ebx], ch
ror dword [ebx - 0x6086636], 0x85
fstp xword [esi + 0x17]
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x47956e
mov ecx, ebx
mov eax, 1
add byte [eax], al
add bl, dl
loopne 0x4795b6
neg eax
mov word [esp + 0x9a], ax
mov edx, dword [esp + 0x50]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x47961d
cmp word [esp + 0xa8], 0
jne 0x47961d
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x88]
imul dword [esp + 0x58]
mov ecx, eax
shl ecx, 2
lea ecx, [ecx + ecx*8]
test ecx, ecx
jl 0x4795e3
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x64]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x479615
mov ecx, ebx
invalid
invalid