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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x837009
cmp byte [eax], 0x31
jne 0x837009
cmp dword [esp + 0x2c], 0x38
jne 0x837009
test esi, esi
je 0x837019
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
je 0x836fd9
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x836ff7
cmp edi, 0xffffffff
je 0x836f11
cmp edi, 9
ja 0x837019
mov dword [esp + 8], 0x16c4
mov dword [esp + 4], 1
mov edx, dword [esi + 0x28]
mov dword [esp], edx
call eax
mov ebx, eax
test eax, eax
je 0x83704a
mov dword [esi + 0x1c], eax
mov dword [eax], esi
mov dword [eax + 4], 0x2a
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0xf
mov dword [eax + 0x2c], 0x8000
mov dword [eax + 0x34], 0x7fff
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], 0x8000
mov dword [eax + 0x54], 0x7fff
mov dword [eax + 0x58], 5
mov dword [esp + 8], 2
mov dword [esp + 4], 0x8000
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x16c0], 0
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x169c], 0x4000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x4000
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [ebx + 0x169c]
mov dword [ebx + 8], eax
lea ecx, [edx*4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x837029
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x837029
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x837029
test eax, eax
je 0x837029
mov ecx, edx
lea edx, [edx + edx*2]
mov dword [ebx + 0x84], edi
and ecx, 0xfffffffe
mov byte [ebx + 0x24], 8
mov dword [ebx + 0x88], 0
add ecx, eax
add eax, edx
mov dword [ebx + 0x16a4], ecx
mov dword [ebx + 0x1698], eax
mov dword [esp], esi
call fcn.00835cd1
mov edi, eax
test eax, eax
je 0x836f21
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
mov edi, 6
jmp 0x836da6
mov ebx, dword [esi + 0x1c]
xor ecx, ecx
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x4c]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x44]
mov word [eax + edx*2 - 2], cx
lea edx, [edx + edx - 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0086e9e1
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
lea eax, [eax + eax*2]
mov dword [ebx + 0x74], 0
shl eax, 2
mov dword [ebx + 0x78], 2
movzx edx, word [eax + 0xa0afa2]
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x80], edx
movzx edx, word [eax + 0xa0afa0]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x8c], edx
movzx edx, word [eax + 0xa0afa4]
movzx eax, word [eax + 0xa0afa6]
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x7c], eax
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x20], 0x8297a0
mov eax, 0x8297a0
mov dword [esi + 0x28], 0
test ebx, ebx
jne 0x836d94
mov dword [esi + 0x24], 0x8297c0
jmp 0x836d94
mov edi, 0xfffffffa
jmp 0x836f08
mov edi, 0xfffffffe
jmp 0x836f08
mov eax, dword [0xa0c838]
mov dword [ebx + 4], 0x29a
mov edi, 0xfffffffc
mov dword [esi + 0x18], eax
mov dword [esp], esi
call fcn.00836841
jmp 0x836f08
mov edi, 0xfffffffc
jmp 0x836f08