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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov ebx, eax
push edi
mov edi, dword [ebx + 8]
test edi, edi
jne 0x4791fc
call fcn.004869d0
mov edi, eax
mov eax, dword [ebx + 0x28]
dec eax
mov dword [esp + 0x1c], eax
mov eax, edi
call fcn.00451f90
cmp dword [ebp + 0x20], 0
mov esi, eax
mov dword [esp + 0x18], esi
jge 0x47922d
mov eax, dword [ebp + 0x14]
movzx ecx, byte [eax + 0x18]
push 0
push esi
push ecx
push 0x2d
push edi
call fcn.00451be0
add esp, 0x14
mov edx, dword [ebp + 0x14]
xor eax, eax
cmp dword [edx + 0x14], eax
mov dword [esp + 0xc], eax
jle 0x4792aa
jmp 0x479240
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp + 0x1c]
lea ecx, [edx + eax + 1]
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x47926d
push 0
push esi
push ecx
push 0x4b
mov eax, edi
call fcn.00451ba0
add esp, 0x10
jmp 0x479299
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x4b
mov word [eax + 2], dx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x14]
inc eax
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0xc], eax
jl 0x479240
cmp dword [ebp + 0x24], 0
jne 0x47986e
cmp dword [ebp + 0x10], 0
jne 0x47942c
mov al, byte [ebx + 0x13]
test al, al
jne 0x4792cd
inc dword [ebx + 0x2c]
mov esi, dword [ebx + 0x2c]
jmp 0x4792dc
dec al
movzx edx, al
mov byte [ebx + 0x13], al
mov esi, dword [ebx + edx*4 + 0x15c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x1c]
push 0
push esi
lea eax, [ecx + edx + 1]
push eax
push 0x41
push edi
call fcn.00451be0
add esp, 0x14
push 0
push 0
push esi
push 0x11
push edi
call fcn.00451be0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
add esp, 0x14
mov dword [esp + 0x24], eax
cmp edx, dword [ecx]
jne 0x47934a
cmp dword [ebp + 0x20], 1
jne 0x47934a
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x1c]
push esi
push eax
push ecx
push 0x4e
push edi
call fcn.00451be0
mov eax, dword [edi + 0x88]
add esp, 0x14
test eax, eax
jle 0x47934a
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
mov ecx, 0x90
mov word [eax + edx*4 - 0x12], cx
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
push 0x68
push edx
push eax
mov eax, dword [ebp + 0xc]
push ebx
call fcn.0047b2b0
mov ecx, dword [esp + 0x2c]
push esi
push 0
push ecx
push 0x20
push edi
call fcn.00451be0
mov edx, dword [esp + 0x3c]
add esp, 0x24
push 0
push edx
push 0
push 0xd
push edi
call fcn.00451be0
mov ecx, dword [edi + 0x88]
lea eax, [ecx - 2]
add esp, 0x14
test eax, eax
jge 0x479395
lea eax, [ecx - 1]
mov edx, dword [edi]
cmp byte [edx + 0x45], 0
je 0x4793a4
mov eax, 0x672248
jmp 0x4793ad
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x88]
test eax, eax
jge 0x4793c1
lea eax, [ecx - 1]
mov edx, dword [edi]
cmp byte [edx + 0x45], 0
je 0x4793d0
mov eax, 0x672248
jmp 0x4793d9
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
test esi, esi
je 0x47986e
cmp byte [ebx + 0x13], 8
jae 0x47986e
xor eax, eax
lea ecx, [ebx + 0x94]
cmp byte [ebx + 0x19], al
jbe 0x479837
cmp dword [ecx + 0xc], esi
je 0x479423
movzx edx, byte [ebx + 0x19]
inc eax
add ecx, 0x14
cmp eax, edx
jl 0x4793ff
movzx eax, byte [ebx + 0x13]
mov dword [ebx + eax*4 + 0x15c], esi
inc byte [ebx + 0x13]
jmp 0x47986e
mov byte [ecx + 6], 1
jmp 0x47986e
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x10], ecx
cmp ecx, 1
jne 0x479463
mov al, byte [ebx + 0x13]
test al, al
jne 0x47944e
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x479489
dec al
movzx edx, al
mov byte [ebx + 0x13], al
mov eax, dword [ebx + edx*4 + 0x15c]
mov dword [esp + 0x14], eax
jmp 0x479489
mov eax, dword [ebx + 0x1c]
cmp ecx, eax
mov edx, dword [ebx + 0x20]
jg 0x47947a
lea esi, [edx + ecx]
sub eax, ecx
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x1c], eax
jmp 0x479485
mov eax, dword [ebx + 0x2c]
lea edx, [eax + 1]
add eax, ecx
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x14], edx
mov al, byte [ebx + 0x13]
test al, al
jne 0x47949c
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x20], eax
jmp 0x4794af
dec al
movzx ecx, al
mov byte [ebx + 0x13], al
mov edx, dword [ebx + ecx*4 + 0x15c]
mov dword [esp + 0x20], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x68
push edi
call fcn.00451be0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx + 8]
add esp, 0x14
push ecx
push ebx
call fcn.00474580
add esp, 8
test eax, eax
je 0x479509
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x4794f2
mov edx, 0xfffffff7
call fcn.004524d0
jmp 0x479509
mov ecx, dword [esi + 0x88]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x58]
lea ecx, [ecx + edx*4 - 0x14]
mov byte [ecx + 1], 0xf7
mov dword [ecx + 0x10], eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
jle 0x47958d
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + eax*4]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [edi + 0xc]
lea ecx, [eax + ecx + 1]
mov eax, dword [edi + 0x88]
cmp dword [edx + 0x30], eax
jg 0x47954d
push 0
push esi
push ecx
push 0x40
mov eax, edi
call fcn.00451ba0
add esp, 0x10
jmp 0x479579
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x40
mov word [eax + 2], dx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc eax
inc esi
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x479520
jmp 0x479591
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
cmp eax, dword [edx]
jne 0x4796c1
cmp dword [ebp + 0x20], 1
jne 0x4796c1
mov eax, dword [edi + 0x88]
lea edx, [eax + ecx + 1]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], eax
test ecx, ecx
jle 0x47966e
mov esi, dword [ebp + 0x10]
mov esi, dword [esi + 4]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + eax*4]
movzx eax, word [esi + eax*2]
mov ecx, dword [ebp + 0x1c]
movsx esi, ax
lea edx, [edx + ecx + 1]
lea ecx, [esi + ecx + 1]
mov esi, dword [ebp + 0xc]
cmp ax, word [esi + 0x28]
jne 0x4795ef
mov ecx, dword [ebp + 0x1c]
mov eax, dword [edi + 0x88]
mov esi, dword [edi + 0xc]
cmp dword [esi + 0x30], eax
jg 0x479612
mov eax, dword [esp + 0x24]
push ecx
push eax
push edx
push 0x4d
mov eax, edi
call fcn.00451ba0
add esp, 0x10
jmp 0x479641
lea esi, [eax + 1]
mov dword [edi + 0x88], esi
mov esi, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov byte [eax], 0x4d
mov word [eax + 2], si
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [edi + 0x88]
test eax, eax
jle 0x47965b
mov ecx, dword [edi + 0x58]
lea eax, [eax + eax*4]
mov edx, 0x10
mov word [ecx + eax*4 - 0x12], dx
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
jl 0x4795c5
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x479693
mov edx, dword [esp + 0x18]
push 0
push edx
push 0
push 0xd
mov eax, edi
call fcn.00451ba0
add esp, 0x10
jmp 0x4796c1
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov byte [eax], 0xd
mov word [eax + 2], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx]
call fcn.0047b3c0
mov ecx, dword [edi + 0x88]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4796fa
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push ecx
push edx
push 0x63
mov eax, edi
call fcn.00451ba0
add esp, 0x10
jmp 0x479737
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0x58]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x20]
mov byte [eax], 0x63
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
call fcn.00452710
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0xc]
add esp, 0x10
cmp dword [eax + 0x30], ecx
jg 0x479772
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
push 0x1e
mov eax, edi
call fcn.00451ba0
add esp, 0x10
jmp 0x4797ab
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0x58]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov byte [eax], 0x1e
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
jne 0x4797c7
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 0
test esi, esi
je 0x4797fd
cmp byte [ebx + 0x13], 8
jae 0x4797fd
xor eax, eax
lea ecx, [ebx + 0x94]
cmp byte [ebx + 0x19], al
jbe 0x4797ef
cmp dword [ecx + 0xc], esi
je 0x479847
movzx edx, byte [ebx + 0x19]
inc eax
add ecx, 0x14
cmp eax, edx
jl 0x4797de
movzx eax, byte [ebx + 0x13]
mov dword [ebx + eax*4 + 0x15c], esi
inc byte [ebx + 0x13]
cmp dword [esp + 0x10], 1
jne 0x47984d
cmp dword [esp + 0x14], 0
je 0x47986e
cmp byte [ebx + 0x13], 8
jae 0x47986e
mov esi, dword [esp + 0x14]
xor eax, eax
lea ecx, [ebx + 0x94]
cmp byte [ebx + 0x19], al
jbe 0x479837
cmp dword [ecx + 0xc], esi
je 0x479423
movzx edx, byte [ebx + 0x19]
inc eax
add ecx, 0x14
cmp eax, edx
jl 0x479822
movzx eax, byte [ebx + 0x13]
mov dword [ebx + eax*4 + 0x15c], esi
inc byte [ebx + 0x13]
jmp 0x47986e
mov byte [ecx + 6], 1
jmp 0x4797fd
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.00468990
add esp, 8
cmp esi, dword [ebx + 0x1c]
jle 0x47986e
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], edx
mov ecx, dword [ebp + 0x14]
mov al, byte [ecx + 0x18]
test al, al
jne 0x4798e9
mov edx, dword [ebx]
test dword [edx + 0x18], 0x40000
jne 0x4798e9
cmp dword [ebx + 0x78], 0
jne 0x4798e9
cmp byte [ebx + 0x14], al
jne 0x4798e9
mov esi, dword [ebx + 8]
test esi, esi
jne 0x47989e
mov eax, ebx
call fcn.004869d0
mov esi, eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4798a7
mov ebx, eax
push 0
push 2
push 0x313
push 0x37
push esi
mov byte [ebx + 0x15], 1
call fcn.00451be0
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
push esi
call fcn.00452710
mov eax, dword [esi + 0x88]
add esp, 0x10
test eax, eax
jle 0x479953
mov ecx, dword [esi + 0x58]
lea eax, [eax + eax*4]
mov edx, 4
mov word [ecx + eax*4 - 0x12], dx
jmp 0x479953
mov edx, dword [ebp + 0x20]
xor esi, esi
cmp edx, esi
jle 0x479903
test al, al
jne 0x479903
mov eax, dword [ebx + 0x78]
cmp eax, esi
je 0x4798ff
mov ebx, eax
mov byte [ebx + 0x15], 1
mov eax, dword [edi + 0x88]
mov ebx, dword [edi + 0xc]
cmp dword [ebx + 0x30], eax
movzx ecx, byte [ecx + 0x18]
jg 0x479929
push esi
push edx
push ecx
push 0x91
mov eax, edi
call fcn.00451ba0
add esp, 0x10
jmp 0x479953
lea ebx, [eax + 1]
mov dword [edi + 0x88], ebx
mov ebx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov byte [eax], 0x91
mov word [eax + 2], bx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x48]
xor ecx, ecx
cmp eax, ecx
je 0x479974
mov edx, dword [esp + 0x18]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [edi + 0x88]
mov dword [eax], edx
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x47999c
mov eax, dword [esp + 0x1c]
push ecx
push ecx
push eax
push 0x70
mov eax, edi
call fcn.00451ba0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
pop edi
mov word [eax + 2], dx
mov edx, dword [esp + 0x18]
pop esi
mov byte [eax], 0x70
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0
pop ebx
mov esp, ebp
pop ebp
ret