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

Disassembly:
push 0xffffffffffffffff
push 0x50c278
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e2fc]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
xor esi, esi
push esi
push 0x11
lea ecx, [esp + 0x6c]
mov dword [esp + 0x8c], esi
call fcn.00b674ec
push esi
push 0x11
lea ecx, [esp + 0x54]
mov byte [esp + 0x8c], 1
call fcn.00b674ec
push esi
push 0x12
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c], 2
call fcn.00b674ec
movzx ebx, word [esp + 0x8c]
cmp ebx, esi
jbe 0xb67950
jmp 0xb6790c
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x9c]
cmp esi, eax
jb 0xb67923
call fcn.00bd9428
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
movzx edi, byte [ecx + esi]
sub edx, eax
sar edx, 1
cmp edi, edx
jb 0xb67947
call fcn.00bd9428
mov eax, dword [esp + 0x70]
inc word [eax + edi*2]
inc esi
cmp esi, ebx
jb 0xb6790c
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
sar eax, 1
cmp eax, 1
ja 0xb67964
call fcn.00bd9428
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov word [edx + 2], cx
lea esi, [ecx + 1]
lea ebp, [ecx + 0xf]
jmp 0xb6797c
mov eax, dword [esp + 0x44]
mov ecx, eax
sub ecx, dword [esp + 0x40]
sar ecx, 1
cmp esi, ecx
jb 0xb67995
call fcn.00bd9428
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea ecx, [edx + esi*2]
mov edx, dword [esp + 0x74]
sub edx, dword [esp + 0x70]
mov dword [esp + 0x24], ecx
sar edx, 1
cmp esi, edx
jb 0xb679b7
call fcn.00bd9428
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
lea edi, [esi + 1]
sar eax, 1
lea ebx, [ecx + esi*2]
cmp edi, eax
jb 0xb679d0
call fcn.00bd9428
mov dx, word [ebx]
mov eax, dword [esp + 0x24]
mov ecx, ebp
shl dx, cl
mov ecx, dword [esp + 0x40]
dec ebp
add dx, word [eax]
mov word [ecx + esi*2 + 2], dx
mov esi, edi
cmp esi, 0x10
jbe 0xb6797c
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, ecx
sub edx, eax
sar edx, 1
cmp edx, 0x11
ja 0xb67a10
call fcn.00bd9428
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp word [eax + 0x22], 0
je 0xb67ad0
push eax
call fcn.00bd897e
mov eax, dword [esp + 0x38]
xor esi, esi
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.00bd897e
mov eax, dword [esp + 0x60]
add esp, 8
cmp eax, esi
je 0xb67a4d
push eax
call fcn.00bd897e
add esp, 4
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call fcn.00bd897e
mov eax, dword [esp + 0x74]
add esp, 4
cmp eax, esi
je 0xb67a77
push eax
call fcn.00bd897e
add esp, 4
mov edx, dword [esp + 0x64]
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
call fcn.00bd897e
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, esi
je 0xb67aa4
push eax
call fcn.00bd897e
add esp, 4
mov eax, dword [esp + 0x90]
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
call fcn.00bd897e
add esp, 4
xor al, al
jmp 0xb67f15
mov edx, dword [esp + 0xa8]
mov esi, 0x10
sub esi, edx
movzx ebx, dx
movzx edi, si
mov esi, 1
cmp ebx, esi
jb 0xb67b40
jmp 0xb67af7
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
sub ecx, eax
sar ecx, 1
cmp esi, ecx
jb 0xb67b08
call fcn.00bd9428
mov eax, dword [esp + 0x40]
mov cx, di
shr word [eax + esi*2], cl
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x58]
sar ecx, 1
cmp esi, ecx
jb 0xb67b22
call fcn.00bd9428
mov eax, dword [esp + 0x58]
mov ecx, ebx
sub ecx, esi
mov edx, 1
shl edx, cl
inc esi
mov word [eax + esi*2 - 2], dx
cmp esi, ebx
jbe 0xb67aef
cmp esi, 0x10
ja 0xb67b70
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x58]
sar ecx, 1
cmp esi, ecx
jb 0xb67b53
call fcn.00bd9428
mov eax, dword [esp + 0x58]
mov ecx, 0x10
sub ecx, esi
mov edx, 1
shl edx, cl
inc esi
mov word [eax + esi*2 - 2], dx
cmp esi, 0x10
jbe 0xb67b40
mov eax, dword [esp + 0x44]
mov ecx, eax
sub ecx, dword [esp + 0x40]
lea esi, [ebx + 1]
sar ecx, 1
cmp esi, ecx
jb 0xb67b8c
call fcn.00bd9428
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
movzx esi, word [edx + esi*2]
mov ebp, dword [esp + 0xac]
movzx ecx, di
shr esi, cl
mov dword [esp + 0x28], ecx
mov edi, 1
mov ecx, ebx
shl edi, cl
cmp esi, edi
jae 0xb67bd4
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp esi, eax
jb 0xb67bc2
call fcn.00bd9428
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov word [ecx + esi*2], dx
inc esi
cmp esi, edi
jb 0xb67bb1
mov eax, dword [esp + 0x44]
mov dx, word [esp + 0x8c]
movzx ecx, dx
mov dword [esp + 0x18], ecx
mov ecx, 0xf
sub ecx, ebx
mov esi, 1
shl esi, cl
mov dword [esp + 0x14], 0
movzx ecx, si
mov dword [esp + 0x2c], ecx
xor ecx, ecx
cmp cx, dx
jae 0xb67e5a
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov esi, ecx
lea esp, [esp]
mov edx, dword [esp + 0xa0]
sub edx, dword [esp + 0x9c]
cmp esi, edx
jb 0xb67c37
call fcn.00bd9428
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x9c]
movzx dx, byte [esi + ecx]
movzx edi, dx
test di, di
je 0xb67e3e
mov ecx, eax
sub ecx, dword [esp + 0x40]
movzx ebx, di
sar ecx, 1
mov dword [esp + 0x30], ebx
cmp ebx, ecx
jb 0xb67c6b
call fcn.00bd9428
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
sar ecx, 1
lea esi, [edx + ebx*2]
cmp ebx, ecx
jb 0xb67c89
call fcn.00bd9428
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov cx, word [edx + ebx*2]
add cx, word [esi]
movzx edx, cx
mov dword [esp + 0x24], edx
cmp di, word [esp + 0xa8]
ja 0xb67d0a
mov ecx, eax
sub ecx, dword [esp + 0x40]
sar ecx, 1
cmp ebx, ecx
jb 0xb67cba
call fcn.00bd9428
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
movzx esi, word [edx + ebx*2]
movzx edi, word [esp + 0x24]
cmp esi, edi
jae 0xb67e1a
mov eax, dword [esp + 0xac]
lea ebx, [ebx]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 1
cmp esi, ecx
jb 0xb67cf4
call fcn.00bd9428
mov eax, dword [esp + 0xac]
mov edx, dword [eax + 0xc]
mov cx, word [esp + 0x14]
mov word [edx + esi*2], cx
inc esi
cmp esi, edi
jb 0xb67cdc
jmp 0xb67e16
sub eax, dword [esp + 0x40]
sar eax, 1
cmp ebx, eax
jb 0xb67d19
call fcn.00bd9428
mov edx, dword [esp + 0x40]
movzx eax, word [edx + ebx*2]
mov cl, byte [esp + 0x28]
movzx esi, ax
shr esi, cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 1
cmp esi, ecx
jb 0xb67d46
call fcn.00bd9428
sub edi, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov eax, dword [edx + 0xc]
movzx ebx, di
lea esi, [eax + esi*2]
test bx, bx
je 0xb67e0a
lea ebx, [ebx]
cmp word [esi], 0
jne 0xb67db7
mov ecx, dword [ebp + 0x3c]
sub ecx, dword [ebp + 0x38]
movzx edi, word [esp + 0x18]
sar ecx, 1
cmp edi, ecx
jb 0xb67d88
call fcn.00bd9428
mov edx, dword [ebp + 0x38]
xor eax, eax
mov word [edx + edi*2], ax
mov ecx, dword [ebp + 0x54]
sub ecx, dword [ebp + 0x50]
sar ecx, 1
cmp edi, ecx
jb 0xb67da2
call fcn.00bd9428
mov edx, dword [ebp + 0x50]
xor eax, eax
mov word [edx + edi*2], ax
mov eax, dword [esp + 0x18]
mov word [esi], ax
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
and ecx, dword [esp + 0x2c]
movzx esi, word [esi]
test cx, cx
je 0xb67de0
mov edx, dword [ebp + 0x54]
sub edx, dword [ebp + 0x50]
sar edx, 1
cmp esi, edx
jb 0xb67dd8
call fcn.00bd9428
mov eax, dword [ebp + 0x50]
lea esi, [eax + esi*2]
jmp 0xb67df7
mov ecx, dword [ebp + 0x3c]
sub ecx, dword [ebp + 0x38]
sar ecx, 1
cmp esi, ecx
jb 0xb67df1
call fcn.00bd9428
mov edx, dword [ebp + 0x38]
lea esi, [edx + esi*2]
shl dword [esp + 0x1c], 1
add ebx, 0xffff
test bx, bx
jne 0xb67d6c
mov ax, word [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov word [esi], ax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
sar eax, 1
cmp ebx, eax
jb 0xb67e29
call fcn.00bd9428
mov cx, word [esp + 0x24]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
mov word [edx + ebx*2], cx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
inc ecx
inc esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], esi
cmp cx, word [esp + 0x8c]
jb 0xb67c1c
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
je 0xb67e6d
push eax
call fcn.00bd897e
add esp, 4
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.00bd897e
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, esi
je 0xb67e97
push eax
call fcn.00bd897e
add esp, 4
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call fcn.00bd897e
mov eax, dword [esp + 0x74]
add esp, 4
cmp eax, esi
je 0xb67ec1
push eax
call fcn.00bd897e
add esp, 4
mov edx, dword [esp + 0x64]
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
call fcn.00bd897e
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, esi
je 0xb67eee
push eax
call fcn.00bd897e
add esp, 4
mov eax, dword [esp + 0x90]
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
call fcn.00bd897e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x24