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

Disassembly:
push 0xffffffffffffffff
push 0x4d282b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14c]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
mov esi, ecx
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebp
call dword [0x4d52cc]
cmp eax, 0xffffffff
jne 0x479651
call fcn.00402e30
jmp 0x479654
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
add esi, 0x28
cmp eax, ebp
mov dword [esp + 0x30], esi
je 0x47968c
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebp
push ebp
push 4
push 2
lea esi, [esp + 0x58]
mov dword [esp + 0x150], ebp
call fcn.0042cf60
cmp eax, ebp
mov dword [esp + 0x14], eax
jge 0x479693
call fcn.0042f660
xor eax, eax
jmp 0x479a9d
mov esi, dword [esp + 0x4c]
cmp dword [esi], 0x51554432
mov dword [esp + 0x18], ebp
jne 0x479a29
cmp word [esi + 4], 3
jne 0x479a29
mov eax, dword [esi + 0x3c]
mov ebx, dword [esp + 0x50]
add eax, 0x40
cmp eax, ebx
ja 0x479a29
mov ecx, 0x10
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x1c]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x78], edx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 0x28]
mov ecx, dword [esi]
push ebp
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [0x4d5294]
cmp eax, 0xffffffff
jne 0x47971b
call fcn.00402e30
mov ecx, dword [esi]
push ebp
lea edx, [esp + 0x20]
push edx
push 0x40
lea eax, [esp + 0x78]
push eax
push ecx
call dword [0x4d52a4]
test eax, eax
jne 0x47973a
call fcn.00402e30
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 0x3c]
add eax, 0x40
cmp byte [edi + 0x30], 0
mov dword [esp + 0x18], eax
jne 0x479a31
jmp 0x479764
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x18], ebx
jae 0x479a31
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 4]
cmp edx, ebx
lea edi, [esi + ecx]
ja 0x479a29
movzx eax, word [edi + 2]
cmp ax, 4
jbe 0x479a29
movzx edx, ax
lea eax, [edx + ecx]
cmp eax, ebx
ja 0x479a29
movzx eax, word [edi]
cmp ax, 0x7747
jne 0x479912
mov bl, byte [edi + 0xf]
movzx ecx, byte [edi + 0xe]
movzx esi, bl
add ecx, esi
lea eax, [ecx + ecx + 0x10]
cmp edx, eax
jb 0x479a29
push 0x82
lea ecx, [esp + 0xb2]
push ebp
push ecx
mov dword [esp + 0x48], ebp
mov word [esp + 0xb8], bp
call fcn.004b0720
movzx eax, byte [edi + 0xe]
add esp, 0xc
cmp bl, 0x40
lea edx, [edi + 0x10]
lea ecx, [edi + eax*2 + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov eax, esi
jb 0x479802
mov eax, 0x40
push eax
push ecx
lea eax, [esp + 0xb4]
push eax
call fcn.004a9267
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
add esp, 0xc
call fcn.0046b3b0
cmp eax, ebp
je 0x4798e5
push ebp
lea ecx, [esp + 0xb0]
push ecx
push esi
push eax
mov eax, ebx
call fcn.00468bf0
cmp eax, ebp
je 0x4798e5
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], ebp
call fcn.0048c070
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x479a13
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 8]
lea esi, [esp + 0x38]
mov dword [esp + 0x20], ebp
call fcn.0048c120
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x479a13
mov eax, dword [ebx + 8]
mov esi, 1
push esi
lea edx, [esp + 0x20]
push edx
movzx edx, byte [edi + 0xd]
push ecx
movzx ecx, byte [edi + 0xc]
push ecx
mov ecx, dword [edi + 4]
push edx
movzx edx, byte [edi + 0xf]
push ecx
push edx
lea ecx, [esp + 0xc8]
push ecx
push eax
mov dword [esp + 0x40], ebp
call fcn.0048c210
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x479a1d
cmp dword [ecx + 8], ebp
jbe 0x4798de
test byte [ecx + 0xe], 0x80
jne 0x4798de
cmp eax, 2
jne 0x4798de
add dword [esp + 0x2c], esi
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov ebx, dword [esp + 0x50]
movzx edx, word [edi + 2]
mov eax, dword [esp + 0x18]
add eax, edx
cmp eax, ebx
mov dword [esp + 0x18], eax
jae 0x479a23
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x30], 0
je 0x479760
jmp 0x479a31
cmp ax, 0x44f7
jne 0x4798e9
movzx eax, byte [edi + 0x13]
lea ecx, [eax + eax + 0x14]
cmp edx, ecx
jb 0x479a29
mov ecx, dword [edi + 0xc]
cmp ecx, dword [esp + 0x18]
jae 0x479a29
lea eax, [esi + ecx]
lea esi, [ecx + 4]
cmp esi, ebx
ja 0x479a29
add edx, ecx
cmp edx, ebx
ja 0x479a29
cmp word [eax], 0x7747
jne 0x479a29
movzx esi, byte [eax + 0xe]
movzx edx, byte [eax + 0xf]
add edx, esi
movzx esi, word [eax + 2]
lea edx, [edx + edx + 0x10]
cmp esi, edx
jb 0x479a29
add edx, ecx
cmp edx, ebx
ja 0x479a29
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
lea ecx, [eax + 0x10]
mov dword [esp + 0x48], ebp
movzx edx, byte [eax + 0xe]
mov dword [esp + 0x44], ecx
movzx ecx, byte [eax + 0xe]
lea edx, [eax + edx*2 + 0x10]
mov dword [esp + 0x40], ecx
movzx eax, byte [eax + 0xf]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 8]
lea esi, [esp + 0x1c]
push esi
push eax
push edx
lea eax, [esp + 0x4c]
mov dword [esp + 0x28], ebp
call fcn.004790e0
cmp eax, ebp
je 0x4798e9
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x4798e9
push 1
lea edx, [esp + 0x20]
push edx
movzx edx, byte [edi + 0x10]
push edx
movzx edx, byte [edi + 0x11]
push edx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + 8]
push eax
mov al, byte [edi + 0x13]
push ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x38], ebp
call fcn.00478e00
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x479a13
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
jmp 0x4798e9
mov dword [esp + 0x14], 1
jmp 0x479a31
mov dword [esp + 0x14], esi
jmp 0x479a31
mov dword [esp + 0x14], ebp
jmp 0x479a31
mov dword [esp + 0x14], 0x8007000b
lea esi, [esp + 0x4c]
call fcn.0042d1f0
cmp dword [esp + 0x14], ebp
jge 0x479a90
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
push ebp
push edi
call fcn.0047a770
cmp edi, ebp
jne 0x479a90
push 0x3c
lea ecx, [esp + 0x74]
push ebp
push ecx
call fcn.004b0720
add esp, 0xc
push ebp
push ebp
push esi
xor edx, edx
mov dword [esp + 0x78], 0x51554432
mov word [esp + 0x7c], 3
mov word [esp + 0x7e], bp
call fcn.004093d0
push esi
mov ecx, 0x40
lea edx, [esp + 0x70]
call fcn.004093a0
lea esi, [esp + 0x4c]
call fcn.0042f660
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004a91d5
add esp, 0x134
ret 4