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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf8
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0x14], eax
lea eax, [ebp + 0xc]
push edi
mov edi, dword [esp + 0x20]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 0
push eax
call fcn.0082eec0
mov cl, byte [esp + 0x1c]
add esp, 8
mov al, cl
not al
test al, 1
jne 0x82d7ab
test cl, 1
je 0x82d77d
mov esi, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x82d783
mov edx, dword [esp + 0x10]
xor esi, esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
or byte [eax + 4], 1
test byte [esp + 0x14], 1
mov dword [eax], esi
je 0x82d97e
test edx, edx
je 0x82d97e
mov eax, dword [edx]
mov ecx, edx
jmp 0x82d97a
xor esi, esi
cmp byte [esp + 0x10], 0
je 0x82dd37
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00830080
mov cl, byte [esp + 0x58]
add esp, 8
mov al, cl
not al
test al, 1
jne 0x82d814
test cl, 1
je 0x82d7e6
mov esi, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x48], edx
jmp 0x82d7ec
mov edx, dword [esp + 0x48]
xor esi, esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
or byte [eax + 4], 1
test byte [esp + 0x50], 1
mov dword [eax], esi
je 0x82d969
test edx, edx
je 0x82d969
mov eax, dword [edx]
mov ecx, edx
jmp 0x82d965
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0082fd20
mov al, byte [esp + 0x68]
add esp, 8
not al
test al, 1
jne 0x82d850
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.00405411
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
or byte [ecx + 4], 1
mov dword [ecx], eax
jmp 0x82d93f
mov ecx, dword [esp + 0x58]
mov eax, ecx
mov edx, dword [esp + 0x5c]
or eax, edx
je 0x82da46
cmp byte [ebp + 0x28], 0
je 0x82d893
push str.String_table_already_provided.
lea eax, [esp + 0x10]
push 0x2a
push eax
call fcn.00414371
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], esi
or byte [ecx + 4], 1
mov dword [ecx], eax
jmp 0x82d93f
push edx
push ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0082fc50
mov cl, byte [esp + 0x54]
add esp, 0x10
mov al, cl
not al
test al, 1
jne 0x82d9a8
test cl, 1
je 0x82d8c7
mov esi, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x82d8cd
mov edx, dword [esp + 0x30]
xor esi, esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
or byte [eax + 4], 1
test byte [esp + 0x44], 1
mov dword [eax], esi
jne 0x82d933
mov edx, dword [esp + 0x38]
test edx, edx
je 0x82d93f
mov ecx, dword [esp + 0x40]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x82d90f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x82d9e5
push ecx
push edx
call fcn.004036ca
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x82d93f
test edx, edx
je 0x82d93f
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
test byte [esp + 0x60], 1
je 0x82d954
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x82d954
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x50], 1
je 0x82d969
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x82d969
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x14], 1
je 0x82d97e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x82d97e
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp + 0x28], 0
je 0x82de7c
lea ecx, [ebp + 0x14]
call fcn.0040ca13
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.004087b5
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x28], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ecx
je 0x82da0c
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x82d9f5
mov ecx, dword [ebp + 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x82d9eb
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x82d9eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004036ca
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x24], eax
jmp 0x82da25
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
mov byte [ebp + 0x28], 1
test byte [esp + 0x44], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x82da46
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x82da46
mov eax, dword [ecx]
push 1
call dword [eax]
sub esp, 8
lea ecx, [ebp + 0xc]
mov eax, esp
mov dword [eax], 0x9f1fb4
mov dword [eax + 4], 3
call fcn.0040d832
test al, al
jne 0x82dd0d
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0xa4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0x50
cmp byte [ebp + 0x34], cl
je 0x82db02
mov esi, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x30]
add eax, esi
mov dword [esp + 0xc], esi
mov esi, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
sub esi, eax
cmp esi, 0x50
jbe 0x82dade
push 1
push esi
mov eax, edx
lea ecx, [esp + 0xa0]
push eax
call fcn.00405e1b
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
je 0x82daf9
push esi
push eax
lea eax, [ecx + edx]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0xa8]
add esp, 0xc
add ecx, esi
mov dword [esp + 0x9c], ecx
lea eax, [esp + 0x68]
mov word [esp + 0x84], 0x101
mov dword [esp + 0x20], eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x90]
mov word [esp + 0x98], 0x101
push eax
lea eax, [esp + 0x38]
mov word [esp + 0x40], 0x101
push eax
lea eax, [esp + 0x2c]
mov word [esp + 0x34], 0x105
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.004153a7
push 0
push 1
lea eax, [esp + 0xb4]
mov word [esp + 0x44], 0x106
push 0xffffffffffffffff
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040bf2d
mov esi, dword [esp + 0x9c]
add esp, 0x2c
test byte [esp + 0x78], 1
je 0x82db95
mov ecx, dword [esp + 0x74]
mov eax, esi
jmp 0x82db9e
call fcn.0040ab32
mov ecx, eax
xor eax, eax
test eax, eax
je 0x82dcdb
push ecx
push eax
lea eax, [esp + 0x14]
mov word [esp + 0x8c], 0x106
lea edx, [esp + 0xa0]
push eax
mov dword [esp + 0x88], edx
call fcn.0040dd73
add esp, 8
mov byte [esp + 0x28], 0
mov ecx, esp
mov byte [esp + 0x24], 0
push dword [esp + 0x28]
mov dword [ecx], 0
mov eax, dword [esp + 0x14]
push dword [esp + 0x28]
mov dword [ecx], eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], 0
push eax
call fcn.004111a8
mov ecx, dword [esp + 0x20]
add esp, 0x14
test ecx, ecx
je 0x82dc18
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
or byte [ecx + 4], 1
test byte [esp + 0x78], 1
mov dword [ecx], eax
jne 0x82dc3b
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x82dc3b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0xa4]
cmp eax, ecx
je 0x82dc57
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test byte [esp + 0x60], 1
je 0x82dc6c
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x82dc6c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x50], 1
je 0x82dc81
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x82dc81
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x14], 1
je 0x82dc96
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x82dc96
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp + 0x28], 0
je 0x82de7c
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x82de7c
mov ecx, dword [ebp + 0x24]
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x82de72
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x82de72
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esp + 0x70], 0
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x98]
cmp eax, ecx
je 0x82dd0d
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test byte [esp + 0x60], 1
je 0x82dd22
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x82dd22
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x50], 1
je 0x82dd37
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x82dd37
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp + 0x28], 0
je 0x82dd6b
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040387d
xor edi, edi
add esp, 0xc
xor ecx, ecx
mov edx, dword [eax]
mov dword [eax], 0
lea eax, [edi + 7]
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], edx
jmp 0x82ddb5
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0040e052
add esp, 8
xor ecx, ecx
mov edx, dword [eax]
mov dword [eax], 0
mov eax, 8
mov ecx, dword [esp + 0x68]
and eax, 0xfffffff7
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x82ddad
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
test al, 4
je 0x82ddcb
mov ecx, dword [esp + 0x20]
and eax, 0xfffffffb
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x82ddcb
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
test al, 2
je 0x82dde7
and eax, 0xfffffffd
mov dword [esp + 0x2c], eax
test edi, edi
je 0x82dde7
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
test al, 1
je 0x82ddfa
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x82ddfa
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov edx, dword [esp + 0xc]
test esi, esi
je 0x82de32
lea edi, [edx + 0x7c]
lea eax, [esp + 0x88]
cmp edi, eax
je 0x82de32
mov ecx, dword [edi]
mov eax, esi
xor esi, esi
mov dword [edi], eax
test ecx, ecx
je 0x82de32
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
and byte [eax + 4], 0xfe
mov dword [eax], ecx
jmp 0x82de48
mov eax, dword [esp + 0x18]
and byte [eax + 4], 0xfe
mov dword [eax], edx
test esi, esi
je 0x82de48
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test byte [esp + 0x14], 1
je 0x82de5d
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x82de5d
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp + 0x28], 0
je 0x82de7c
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x82de7c
mov ecx, dword [ebp + 0x24]
jmp 0x82dcae
push ecx
push edx
call fcn.004036ca
add esp, 8
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.004087b5
mov esp, ebp
pop ebp
ret