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

Disassembly:
push ebp
push edi
mov edi, 0xffffffff
push esi
push ebx
sub esp, 0x9c
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov ecx, eax
mov eax, dword [eax + 0xc]
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], eax
movzx eax, byte [eax + 0x10]
mov edx, dword [esi + 4]
mov dword [esp + 0x3c], esi
lea eax, [eax + eax*8]
mov word [esp + 0x42], di
lea eax, [edx + eax*8 + 8]
mov dword [esp + 0x2c], ecx
mov esi, dword [eax + 0x10]
mov ebp, dword [eax + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], esi
test ebp, ebp
je 0x799483
movzx ebx, word [esi + 0x2e]
mov esi, 1
xor edi, edi
cmp bx, 0xa
jg 0x799472
mov ecx, dword [esp + 0x20]
mov edx, 1
xor eax, eax
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x7994a4
mov ecx, esi
test cl, cl
je 0x799190
test dl, dl
je 0x799190
mov dword [esp + 0x1c], 1
nop
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x798fb6
mov edi, dword [esp + 0xc]
sub esp, 0xc
movzx eax, byte [edi + 0x24]
mov byte [esp + 0x1c], al
mov edx, eax
mov eax, dword [edi + 0x2c]
push ecx
shr dl, 5
mov ecx, dword [esp + 0x3c]
and edx, 1
call fcn.007970a0
add esp, 0x10
test eax, eax
je 0x799290
movzx eax, byte [ebp + 0x39]
and eax, 1
mov byte [esp + 0x25], al
jne 0x799290
mov eax, dword [ebp + 8]
xor esi, esi
mov edx, dword [esp + 0x38]
xor ebx, ebx
movzx ecx, word [eax]
mov eax, dword [esp + 0x18]
mov word [eax + 0x12], si
mov esi, dword [esp + 0x34]
mov dword [eax + 0x18], 0
mov word [eax + 0x1c], bx
mov dword [eax + 0x28], 0
mov byte [eax + 0x11], 0
mov dword [eax], esi
mov dword [eax + 4], edx
mov word [eax + 0x16], cx
mov dword [eax + 0x20], ebp
movzx eax, byte [ebp + 0x38]
mov word [esp + 0x26], cx
test al, 4
jne 0x799310
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
mov dword [esp + 0x10], edx
test edx, edx
je 0x799310
mov edx, dword [edx]
test edx, edx
jle 0x7990a8
mov eax, dword [esp + 0xc]
xor edi, edi
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x14], eax
lea esi, [esi]
mov esi, dword [esp + 0x10]
lea eax, [edi + edi*4]
mov ebx, dword [esi + eax*4 + 4]
lea esi, [esi]
nop
test ebx, ebx
je 0x80ae7c
mov eax, dword [ebx + 4]
test eax, 0x41000
je 0x799085
test eax, 0x40000
je 0x7991a0
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x80ae7c
mov eax, dword [ebx + 4]
test eax, 0x41000
jne 0x799062
cmp byte [ebx], 0xa4
je 0x7992a0
mov esi, dword [ebp + 0x28]
test esi, esi
jne 0x7991d0
mov eax, dword [esp + 0x10]
add edi, 1
cmp edi, dword [eax]
jl 0x799040
movzx eax, byte [ebp + 0x38]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x79968f
xor esi, esi
lea esi, [esi]
nop
test al, 0x20
je 0x799330
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov dword [ecx + 0x24], 0x240
xor ecx, ecx
test esi, esi
jne 0x799361
mov esi, dword [esp + 0x30]
test byte [esi + 0x24], 0x80
jne 0x7990f4
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x799402
mov edi, dword [esp + 0x18]
movzx eax, byte [esp + 0x25]
mov byte [edi + 0x11], al
movsx edx, word [ebp + 0x30]
mov eax, edx
shl eax, 4
sub eax, edx
mov edx, dword [esp + 0x30]
movsx esi, word [edx + 0x30]
cdq
idiv esi
movzx edx, word [esp + 0x26]
or ebx, ecx
lea eax, [edx + eax + 1]
mov word [edi + 0x14], ax
jne 0x799370
mov esi, dword [esp + 0x18]
movsx ecx, word [esp + 0x26]
mov eax, dword [esp + 0x2c]
mov edx, esi
mov ebx, ecx
call fcn.0076df80
mov eax, dword [esp + 0x20]
mov edx, esi
call fcn.00773d20
mov word [esi + 0x16], bx
test eax, eax
jne 0x799190
mov esi, dword [esp + 0x20]
sub esp, 0xc
mov ecx, ebp
mov dword [esi + 0x14], 0
mov eax, esi
push 0
mov edx, dword [esp + 0x1c]
call fcn.007984c0
add esp, 0x10
cmp dword [esi + 0x14], 1
jne 0x799185
mov ecx, dword [esp + 0x30]
or dword [ecx + 0x24], 0x100
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 0x44]
test edx, edx
je 0x7991b0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebx + 0xc]
jmp 0x799050
mov ebp, dword [ebp + 0x14]
add dword [esp + 0x1c], 1
test eax, eax
sete cl
test ebp, ebp
setne dl
test cl, dl
jne 0x798f80
jmp 0x799190
cmp word [ebp + 0x32], 0
je 0x799099
lea eax, [esi + 4]
mov dword [esp + 0x28], edi
xor esi, esi
mov edi, eax
jmp 0x799202
movzx eax, word [ebp + 0x32]
add esi, 1
add edi, 0x14
cmp esi, eax
jge 0x799300
mov eax, dword [ebp + 4]
cmp word [eax + esi*2], 0xfffe
jne 0x7991f0
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
mov eax, ebx
call fcn.00797db0
test eax, eax
jne 0x7991f0
movzx eax, byte [ebp + 0x38]
mov esi, 1
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x7990c0
mov eax, dword [esp + 0x18]
mov dword [eax + 0x24], 0x100
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x25], al
mov edi, dword [esp + 0x18]
movsx ecx, word [esp + 0x26]
movzx eax, byte [esp + 0x25]
mov edx, edi
mov esi, ecx
mov byte [edi + 0x11], al
lea eax, [ecx + 0x10]
mov word [edi + 0x14], ax
mov eax, dword [esp + 0x2c]
call fcn.0076df80
mov eax, dword [esp + 0x20]
mov edx, edi
call fcn.00773d20
mov word [edi + 0x16], si
test eax, eax
je 0x799154
jmp 0x799190
xor eax, eax
jmp 0x799185
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x1c]
jne 0x79908e
movzx edx, word [ebx + 0x20]
test dx, dx
js 0x79921d
movzx ecx, word [ebp + 0x32]
test cx, cx
je 0x799099
mov ebx, dword [ebp + 4]
cmp dx, word [ebx]
je 0x79921d
lea eax, [ebx + 2]
lea ecx, [ebx + ecx*2]
lea esi, [esi]
cmp ecx, eax
je 0x799099
add eax, 2
cmp dx, word [eax - 2]
jne 0x7992e0
jmp 0x79921d
mov edi, dword [esp + 0x28]
jmp 0x799099
mov edx, eax
xor esi, esi
and edx, 3
cmp dl, 3
jne 0x7990c0
mov eax, dword [esp + 0x18]
mov dword [eax + 0x24], 0x100
jmp 0x799248
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov ebx, dword [edx + 0x3c]
and ebx, dword [ebp + 0x44]
mov ecx, dword [edx + 0x38]
mov edx, ebx
and ecx, dword [ebp + 0x40]
or edx, ecx
cmp edx, 1
sbb edx, edx
and edx, 0x40
add edx, 0x200
mov dword [edi + 0x24], edx
test esi, esi
je 0x7990df
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x25], al
jmp 0x7990f4
mov ecx, edx
lea edi, [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ecx + 0x5c]
test ebx, ebx
jle 0x7993ec
mov dword [esp + 0x10], ebp
xor esi, esi
mov ebp, ecx
jmp 0x7993aa
lea eax, [edi - 1]
sub edi, 0x14
test byte [ebx + 0xc], 0x82
cmove edi, eax
add esi, 1
cmp dword [ebp + 0x5c], esi
jle 0x7993e0
lea ebx, [esi + esi*2]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shl ebx, 4
add ebx, dword [ebp + 0x64]
mov eax, dword [ebx]
call fcn.0076d910
test eax, eax
je 0x7993e0
movzx eax, word [ebx + 8]
test ax, ax
jg 0x799395
add edi, eax
add esi, 1
cmp dword [ebp + 0x5c], esi
jg 0x7993aa
lea esi, [esi]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
movzx eax, word [eax + 0x14]
movsx edx, di
cwde
call fcn.0076b300
mov ecx, dword [esp + 0x18]
mov word [ecx + 0x14], ax
jmp 0x79912b
or ebx, ecx
jne 0x799154
test al, 4
jne 0x799154
movsx eax, word [ebp + 0x30]
movsx ecx, word [esi + 0x30]
cmp ax, cx
jge 0x799154
mov edx, dword [esp + 0x3c]
test byte [edx + 0x28], 4
jne 0x799154
cmp byte [0x849767], 0
je 0x799154
mov edx, dword [edx]
mov edx, dword [edx]
test byte [edx + 0x4c], 0x20
jne 0x799154
mov edx, eax
mov esi, dword [esp + 0x18]
shl edx, 4
sub edx, eax
mov byte [esi + 0x11], 0
mov eax, edx
cdq
idiv ecx
movzx ecx, word [esp + 0x26]
lea eax, [ecx + eax + 1]
mov word [esi + 0x14], ax
jmp 0x79912b
movsx eax, bx
cdq
call fcn.00760a80
lea edi, [eax - 0x21]
jmp 0x798f4f
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 0x80
je 0x79961a
mov ebp, dword [eax + 8]
movzx ebx, word [eax + 0x2e]
test ebp, ebp
setne al
mov esi, eax
jmp 0x798f43
mov ecx, dword [esp + 0x3c]
test byte [ecx + 0x28], 0x20
jne 0x798f65
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
test byte [ecx + 0x21], 0x80
je 0x798f65
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x44], 0
jne 0x798f65
movzx ecx, byte [ecx + 0x28]
mov byte [esp + 0x10], cl
and ecx, 1
jne 0x798f65
mov ecx, dword [esp + 0x30]
test byte [ecx + 0x24], 0x80
jne 0x798f65
test byte [esp + 0x10], 0x28
jne 0x798f65
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x10], ecx
jae 0x798f65
add ebx, edi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
lea eax, [ebx - 0xa]
mov word [esp + 0x26], ax
mov eax, esi
mov esi, dword [esp + 0x10]
mov byte [esp + 0x25], al
jmp 0x7995fd
push 0
mov eax, esi
push 0
mov edx, dword [esp + 0x14]
call fcn.0076f6a0
pop ecx
pop edx
test eax, eax
je 0x799611
mov eax, 1
mov dword [ebp + 0x20], 0
mov word [ebp + 0x18], ax
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x28], 1
mov dword [eax], esi
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x7996be
movzx eax, word [esp + 0x26]
test ax, ax
mov edx, 0
cmovs eax, edx
mov edx, 0x2b
mov word [ebp + 0x12], ax
mov eax, 0x2b
mov word [ebp + 0x16], ax
movsx eax, di
call fcn.0076b300
mov dword [ebp + 0x24], 0x4000
mov edx, ebp
mov word [ebp + 0x14], ax
mov eax, dword [esp + 0x34]
or eax, dword [esi + 0x20]
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
or eax, dword [esi + 0x24]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x20]
call fcn.00773d20
test eax, eax
sete dl
add esi, 0x30
cmp dword [esp + 0x1c], esi
jbe 0x7996b0
test dl, dl
je 0x7996b0
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
and eax, dword [ebp + 8]
and edx, dword [ebp + 0xc]
or edx, eax
je 0x79954b
mov edx, 1
xor eax, eax
jmp 0x7995e8
lea edx, [esp + 0x48]
mov eax, ebp
mov ecx, 0x12
xor esi, esi
mov edi, edx
mov word [esp + 0x46], si
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x42]
mov byte [esp + 0x7e], 5
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x50], eax
mov dword [esp + 0x7a], 0x10001
mov dword [esp + 0x54], ecx
movzx eax, word [ecx + 0x30]
movzx ebx, word [ecx + 0x2e]
or byte [esp + 0x80], 3
mov word [esp + 0x78], ax
mov eax, dword [esp + 0xc]
mov word [esp + 0x44], bx
test byte [eax + 0x28], 1
jne 0x7996a4
mov eax, dword [eax + 0x10]
mov esi, 1
mov ebp, edx
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], eax
jmp 0x798f43
mov eax, dword [esp + 0x18]
mov byte [esp + 0x25], 0
mov dword [eax + 0x24], 0x100
jmp 0x799248
mov esi, 1
mov ebp, edx
jmp 0x798f43
mov ebp, dword [esp + 0x14]
movzx esi, byte [esp + 0x25]
jmp 0x798f65
test byte [eax + 0x24], 2
jne 0x79958f
lea eax, [ebx + 0x1c]
jmp 0x799594
movzx eax, byte [pe_dos_header]
ud2