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

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x68]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0xcc]
push edi
lea ecx, [esp + 0x50]
push ecx
xor edi, edi
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
xor ebp, ebp
call fcn.00782550
mov ebx, eax
mov eax, dword [esp + 0x58]
add esp, 8
cmp eax, edi
jne 0x7827df
mov edi, dword [esp + 0x74]
test edi, edi
jne 0x782c95
mov eax, dword [esp + 0x4c]
push edi
push edi
push edi
push edi
push eax
call fcn.0077a1e0
mov edi, eax
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x48]
add esp, 0x14
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
jmp 0x782c95
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.00782270
mov ebp, dword [esp + 0x90]
mov ecx, dword [esp + 0x6e]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
add esp, 8
cmp ebp, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
jle 0x782825
cmp ax, di
jne 0x78281b
cmp cx, di
jne 0x78281b
cmp dx, di
je 0x782825
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
xor eax, eax
movzx esi, ax
cmp esi, edi
mov edi, dword [esp + 0x74]
jle 0x78286b
inc ebp
push 0
mov eax, ebx
call fcn.00782430
mov ecx, dword [esp + 0x88]
push ebp
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x28]
push ecx
push eax
push edi
push edx
call fcn.00782770
add esp, 0x20
dec esi
mov edi, eax
jne 0x782831
mov ebp, dword [esp + 0x88]
movzx eax, word [esp + 0x44]
test eax, eax
jle 0x782951
inc ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x44], eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
call fcn.00779990
mov edx, dword [esp + 0x44]
add esp, 0xc
test edi, edi
lea eax, [eax + edx*2]
mov dword [esp + 0x38], eax
jne 0x7828a7
xor ebp, ebp
jmp 0x7828ab
movsx ebp, word [edi + 0x38]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov al, byte [edx + eax]
xor esi, esi
xor ecx, ecx
inc edx
cmp al, 0xf0
mov dword [ebx + 4], edx
jb 0x7828e0
nop
movzx edx, al
mov eax, dword [ebx]
sub edx, 0xf0
shl edx, cl
add ecx, 4
or esi, edx
mov edx, dword [ebx + 4]
mov al, byte [edx + eax]
inc edx
cmp al, 0xf0
mov dword [ebx + 4], edx
jae 0x7828c0
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x88]
push edx
movzx eax, al
shl eax, cl
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x2c]
push edx
or eax, esi
push eax
push edi
push ecx
call fcn.00782770
mov edi, eax
movsx ecx, word [edi + 0x38]
mov edx, dword [edi + 0x44]
mov esi, dword [edi + 0x48]
add esp, 0x1c
cmp ebp, ecx
jge 0x782947
sub edx, esi
lea eax, [esi + ebp*2]
sub ecx, ebp
jmp 0x782930
mov si, word [esp + 0x38]
add word [edx + eax], si
mov si, word [esp + 0x74]
add word [eax], si
add eax, 2
dec ecx
jne 0x782930
dec dword [esp + 0x44]
jne 0x782881
movzx eax, word [esp + 0x40]
test eax, eax
jle 0x782ad6
mov dword [esp + 0x44], eax
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.00779990
mov ecx, dword [esp + 0x48]
lea edx, [eax + ecx*2]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebx
mov dword [esp + 0x54], edx
call fcn.00779990
mov edx, dword [esp + 0x60]
lea eax, [eax + edx*2]
mov dword [esp + 0x60], eax
movsx eax, ax
add eax, 0x100
push 0x100
push eax
call fcn.00779700
movsx ecx, word [esp + 0x30]
mov ebp, eax
add ecx, 0x100
push 0x100
add ebp, 8
push ecx
sar ebp, 4
call fcn.00779700
mov esi, eax
add esi, 8
xor ecx, ecx
add esp, 0x28
sar esi, 4
cmp edi, ecx
jne 0x7829e0
mov dword [esp + 0x34], ecx
jmp 0x7829e8
movsx edx, word [edi + 0x38]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov al, byte [edx + eax]
inc edx
cmp al, 0xf0
mov dword [esp + 0x30], ecx
mov dword [ebx + 4], edx
jb 0x782a28
lea esp, [esp]
movzx edx, al
mov eax, dword [esp + 0x30]
sub edx, 0xf0
shl edx, cl
add ecx, 4
or eax, edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
mov al, byte [edx + eax]
inc edx
cmp al, 0xf0
mov dword [ebx + 4], edx
jae 0x782a00
mov edx, dword [esp + 0x88]
inc edx
push edx
mov edx, dword [esp + 0x88]
push edx
movzx eax, al
lea edx, [esp + 0x2c]
push edx
shl eax, cl
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x34]
push edx
or eax, dword [esp + 0x40]
push eax
push edi
push ecx
call fcn.00782770
mov edi, eax
movsx ecx, word [edi + 0x38]
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x48]
add esp, 0x1c
cmp dword [esp + 0x34], ecx
jge 0x782acc
movsx ebp, bp
movsx esi, si
mov dword [esp + 0x50], ebp
mov ebp, dword [edi + 0x48]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x34]
sub edx, ebp
lea eax, [eax + esi*2]
sub ecx, esi
lea esp, [esp]
movsx esi, word [eax + edx]
imul esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x3c]
add esi, 0x800
sar esi, 0xc
add esi, ebp
mov word [eax + edx], si
movsx esi, word [eax]
imul esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x54]
add esi, 0x800
sar esi, 0xc
add esi, ebp
mov word [eax], si
add eax, 2
dec ecx
jne 0x782a90
dec dword [esp + 0x44]
jne 0x782962
test edi, edi
jne 0x782aed
mov edx, dword [esp + 0x4c]
push edi
push edi
push edi
push edi
push edx
call fcn.0077a1e0
add esp, 0x14
mov edi, eax
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x48]
xor edx, edx
mov dx, word [edi + 0x36]
add dx, word [esp + 0x6a]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
push edx
push edi
call fcn.00779af0
movzx eax, word [esp + 0x72]
mov bp, word [edi + 0x38]
add esp, 8
xor esi, esi
test eax, eax
mov dword [esp + 0x50], eax
jle 0x782bb0
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.007820f0
movsx ecx, word [edi + 0x36]
mov edx, dword [edi + 0x3c]
mov eax, dword [esp + 0x6c]
mov word [edx + ecx*2], bp
movsx ecx, word [edi + 0x36]
mov edx, dword [edi + 0x40]
add eax, ebp
mov word [edx + ecx*2], ax
mov edx, dword [edi + 0x40]
xor eax, eax
mov ax, word [edi + 0x36]
movsx ecx, ax
xor ebp, ebp
mov bp, word [edx + ecx*2]
mov ecx, dword [esp + 0x58]
add esp, 8
inc bp
inc eax
inc esi
cmp esi, ecx
mov word [edi + 0x36], ax
jge 0x782bb0
mov edx, dword [edi + 0x3c]
movsx eax, ax
mov word [edx + eax*2], bp
movsx edx, word [edi + 0x36]
mov eax, dword [esp + 0x66]
add eax, ebp
mov ebp, dword [edi + 0x40]
mov word [ebp + edx*2], ax
mov ebp, dword [edi + 0x40]
xor eax, eax
mov ax, word [edi + 0x36]
movsx edx, ax
movsx ebp, word [ebp + edx*2]
inc bp
inc eax
inc esi
cmp esi, ecx
mov word [edi + 0x36], ax
jl 0x782b27
movsx eax, word [edi + 0x38]
movsx ebp, bp
sub ebp, eax
test ebp, ebp
mov dword [esp + 0x34], eax
jle 0x782c91
add eax, ebp
mov ecx, edi
call fcn.00782480
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x48]
mov edx, dword [edi + 0x4c]
xor esi, esi
test ebp, ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x58], edx
mov dword [edi + 0x68], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], 0x7fff
mov dword [esp + 0x44], 0xffff8001
jle 0x782c7f
mov edx, dword [esp + 0x34]
lea edx, [eax + edx*2]
sub ecx, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], ecx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x64]
push ecx
push ebx
call fcn.00779990
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x40]
mov byte [edx + ecx], al
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
add esi, eax
add ecx, edx
add esp, 0xc
cmp si, word [esp + 0x40]
mov dword [esp + 0x4c], ecx
jge 0x782c52
mov dword [esp + 0x40], esi
cmp cx, word [esp + 0x44]
jle 0x782c5d
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
mov word [eax + edx], si
mov edx, dword [esp + 0x34]
mov word [eax], cx
inc edx
add eax, 2
dec ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x50], eax
jne 0x782c15
mov ax, word [esp + 0x40]
mov cx, word [esp + 0x44]
mov word [edi + 0x6c], ax
mov word [edi + 0x72], cx
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x70]
push esi
call fcn.00775e30
mov edx, dword [esp + 0x7c]
push edx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 8]
push eax
call dword [esi + 4]
mov dx, word [esp + 0x50]
sub dx, word [edi + 0x72]
mov ecx, dword [esp + 0x38]
push 0
push ebx
mov dword [esp + 0x64], eax
mov ax, word [edi + 0x6c]
mov word [ecx + ebp*2], 0
mov cx, word [edi + 0x6c]
sub cx, ax
mov eax, dword [esp + 0x44]
mov word [eax + ebp*2], cx
mov ecx, dword [esp + 0x40]
mov word [ecx + ebp*2 + 2], 0
movsx eax, word [eax + ebp*2]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x84], eax
add eax, ecx
mov ecx, dword [esp + 0x44]
mov word [ecx + ebp*2 + 2], ax
movsx ecx, ax
movsx eax, word [esp + 0x84]
add ecx, eax
mov ax, word [edi + 0x72]
add ax, dx
mov dx, ax
mov eax, dword [esp + 0x40]
mov word [eax + ebp*2 + 4], dx
mov edx, dword [esp + 0x44]
sar ecx, 1
mov word [edx + ebp*2 + 4], cx
mov ax, word [eax + ebp*2 + 4]
sub ax, word [esp + 0x58]
mov edx, dword [esp + 0x40]
mov word [edx + ebp*2 + 6], ax
mov eax, dword [esp + 0x44]
mov dx, word [esp + 0x64]
mov word [eax + ebp*2 + 6], cx
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
mov word [ecx], dx
mov cx, word [esp + 0x58]
mov word [eax], cx
mov word [edi + 0x38], bp
call fcn.00771ee0
mov eax, dword [esp + 0x9c]
add esp, 0x14
test eax, eax
jne 0x782ec7
mov eax, dword [esi + 0x3c]
movsx edx, word [eax + 0xc]
movsx eax, word [eax + 0xa]
mov ecx, dword [esi + 0xb8]
sub edx, eax
push edx
push ecx
call fcn.007795d0
mov edx, dword [esi + 0x3c]
mov ebx, eax
movsx eax, word [edx + 0xa]
add ebx, eax
mov eax, dword [esi + 0xb4]
add esp, 8
test eax, eax
jne 0x782e28
mov eax, dword [esi + 0xa8]
test eax, eax
jle 0x782e28
push eax
lea ecx, [ebx + ebx]
push ecx
call fcn.007795d0
mov ebp, eax
add ebp, 0x20
and ebp, 0xffffffc0
add esp, 8
cmp ebp, 0x40
jge 0x782de0
mov ebp, 0x40
mov edx, dword [esi + 0xa8]
push edx
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00779700
mov ebx, eax
mov eax, dword [esi + 0xa8]
push eax
lea ecx, [ebx + ebx]
push ecx
call fcn.007795d0
add esp, 0x10
cmp eax, ebp
jge 0x782e28
lea ecx, [ecx]
mov edx, dword [esi + 0xa8]
inc ebx
push edx
lea eax, [ebx + ebx]
push eax
call fcn.007795d0
add esp, 8
cmp eax, ebp
jl 0x782e10
mov ax, word [edi + 0x36]
test ax, ax
mov edx, dword [edi + 0x48]
jle 0x782e4e
movsx ecx, ax
mov eax, dword [edi + 0x40]
movsx ecx, word [eax + ecx*2 - 2]
xor eax, eax
test ecx, ecx
jl 0x782e4e
add word [edx + eax*2], bx
inc eax
cmp eax, ecx
jle 0x782e45
mov eax, dword [esi + 0xac]
test eax, eax
je 0x782e7f
mov edx, dword [esi + 0xb4]
mov eax, dword [esi + 0xa4]
xor ecx, ecx
test edx, edx
mov edx, dword [esi + 0xa8]
sete cl
push ecx
push edx
push eax
push edi
mov eax, ebx
call fcn.00781d90
add esp, 0x10
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x782e9b
push 1
push 3
push 0
push ebx
push edi
call fcn.00781fc0
add esp, 0x14
mov edi, eax
mov eax, dword [esi + 0x30]
mov cx, word [edi + 0x38]
movzx ebx, word [eax + 0xa]
movsx edx, cx
cmp ebx, edx
jge 0x782eb1
mov word [eax + 0xa], cx
mov esi, dword [esi + 0x30]
mov ax, word [edi + 0x36]
movzx ecx, word [esi + 0xc]
movsx edx, ax
cmp ecx, edx
jge 0x782ec7
mov word [esi + 0xc], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret