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

Disassembly:
push 0xffffffffffffffff
push 0x3a3279d
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x3b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x3c8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3e4]
mov esi, dword [esp + 0x3d8]
mov ebp, dword [esp + 0x3e0]
mov edi, dword [esp + 0x400]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x404]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], eax
call dword [0x3a5fd78]
push 0
mov ebx, eax
call fcn.0393ea90
add esp, 4
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x1c0]
push edx
push 0x104
push 0
push esi
push 0
call fcn.039425c0
test eax, eax
jne 0x39bacbb
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x1c4]
push 0x104
push eax
call fcn.03a02186
add esp, 0x10
push 1
call fcn.0393ea90
add esp, 4
push 7
push 0
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 3
push 0
push 1
push 1
lea edx, [esp + 0x1e0]
push edx
call fcn.0398fe90
test al, al
je 0x39bb308
cmp dword [esp + 0x30], 0xffffffff
je 0x39bb308
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], 0x114
call dword [0x3a60134]
test eax, eax
je 0x39bad29
cmp dword [esp + 0xac], 6
mov dword [esp + 0x18], 1
jb 0x39bad31
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x3d0], 0
cmp dword [esp + 0x3dc], 0xffffffff
mov ecx, dword [esp + 0x24]
mov dword [ecx], 0
je 0x39badb0
test ebp, ebp
jne 0x39bad62
cmp dword [esp + 0x1c], ebp
je 0x39badb0
cmp dword [esp + 0x3f8], 0
jne 0x39badb0
mov edx, dword [0x3a56b80]
push edx
push str._No_output_requested_
mov ecx, edi
call fcn.039efdd0
cmp dword [esp + 0x18], 0
jne 0x39bad91
push 0x3b02
call dword [0x3a5fde0]
or edi, 0xffffffff
mov dword [esp + 0x3d0], edi
cmp esi, edi
je 0x39bada9
push esi
call fcn.0398a3b0
mov dword [esp + 0x14], edi
mov al, 1
jmp 0x39bb311
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
call fcn.039ba700
mov byte [esp + 0x3d0], 1
lea ecx, [esp + 0x34]
call fcn.039ba5f0
test eax, eax
jne 0x39baeaa
mov ecx, dword [0x3a56b80]
push ecx
push str._Not_a_PE_file_
mov ecx, edi
call fcn.039efdd0
cmp esi, 0xffffffff
je 0x39badfc
push esi
call fcn.0398a3b0
or esi, 0xffffffff
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x3fc]
test ebp, ebp
je 0x39bae3e
mov eax, dword [esp + 0x3ec]
mov ecx, dword [esp + 0x3e8]
mov edx, edi
or edx, 0x10
push edx
push eax
push ecx
push 1
lea edx, [esp + 0x1cc]
push edx
push 0
call fcn.039ddbb0
add esp, 0x18
mov dword [ebp], eax
test eax, eax
je 0x39bae3e
mov eax, dword [esp + 0x24]
inc dword [eax]
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x39bae8c
mov eax, dword [esp + 0x3f4]
mov ecx, dword [esp + 0x3f0]
or edi, 0x10
push edi
push eax
push ecx
push 1
lea edx, [esp + 0x1cc]
push edx
push 0
call fcn.039ddbb0
xor ecx, ecx
add esp, 0x18
cmp ebp, ebx
sete cl
mov dword [ebx + ecx*4], eax
test ebp, ebp
je 0x39bae82
cmp dword [ebp], 0
jne 0x39bae8c
test eax, eax
je 0x39bae8c
mov eax, dword [esp + 0x24]
inc dword [eax]
push 0
call dword [0x3a5fde0]
mov byte [esp + 0x3d0], 0
lea ecx, [esp + 0x34]
call fcn.039baa20
jmp 0x39bad91
mov edx, dword [esp + 0x18]
neg edx
sbb edx, edx
not edx
and edx, ebx
mov ebx, dword [0x3a5fde0]
push edx
call ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x68]
call fcn.039ba800
mov byte [esp + 0x3d0], 2
push 0
lea ecx, [esp + 0x68]
call fcn.039ba820
test eax, eax
jne 0x39baf1e
mov ecx, dword [0x3a56b80]
push ecx
push str._Unable_to_load_resource_dir_
mov ecx, edi
call fcn.039efdd0
mov byte [esp + 0x3d0], 1
lea ecx, [esp + 0x64]
call fcn.039ba950
mov byte [esp + 0x3d0], 0
lea ecx, [esp + 0x34]
call fcn.039baa20
jmp 0x39bad91
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x50]
call fcn.039ba800
mov byte [esp + 0x3d0], 3
push 0xe
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x54]
call fcn.039baab0
test eax, eax
jne 0x39bafa9
mov ecx, dword [0x3a56b80]
push ecx
push str._No_icongroups_resources_
mov ecx, edi
call fcn.039efdd0
mov byte [esp + 0x3d0], 2
lea ecx, [esp + 0x4c]
call fcn.039ba950
mov byte [esp + 0x3d0], 1
lea ecx, [esp + 0x64]
call fcn.039ba950
mov byte [esp + 0x3d0], 0
lea ecx, [esp + 0x34]
call fcn.039baa20
mov dword [esp + 0x3d0], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.03941740
mov al, 1
jmp 0x39bb311
mov ecx, dword [esp + 0x3dc]
cmp ecx, 0xffffffff
je 0x39bb2dc
mov esi, dword [esp + 0x1c]
test ebp, ebp
jne 0x39bafc9
test esi, esi
je 0x39bb2dc
test ecx, ecx
jge 0x39baffd
neg ecx
push ecx
lea ecx, [esp + 0x50]
call fcn.039ba920
mov dword [esp + 0x3dc], eax
cmp eax, 0xffffffff
jne 0x39baff6
mov edx, dword [0x3a56b80]
push edx
push str._Loading_by_resource_id_but_id_not_found_
jmp 0x39baf54
mov ecx, dword [esp + 0x3dc]
mov eax, dword [esp + 0x54]
movzx edx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
add eax, edx
cmp eax, ecx
ja 0x39bb020
mov ecx, dword [0x3a56b80]
push ecx
push str._Start_index_out_of_range_
jmp 0x39baf54
mov edx, dword [esp + 0x3f8]
mov dword [esp + 0x28], edx
add edx, ecx
cmp eax, edx
jae 0x39bb039
sub eax, ecx
mov dword [esp + 0x28], eax
jmp 0x39bb047
cmp dword [esp + 0x18], 0
jne 0x39bb047
push 0x3b02
call ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x78]
call fcn.039ba800
mov byte [esp + 0x3d0], 4
push 3
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x7c]
call fcn.039baab0
test eax, eax
jne 0x39bb09a
mov edx, dword [0x3a56b80]
push edx
push str._No_icon_resources_
mov ecx, edi
call fcn.039efdd0
mov byte [esp + 0x3d0], 3
lea ecx, [esp + 0x74]
call fcn.039ba950
jmp 0x39baf5b
xor edi, edi
mov dword [esp + 0x5c], edi
cmp dword [esp + 0x28], edi
jbe 0x39bb291
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ecx
jmp 0x39bb0bc
mov ecx, dword [esp + 0x20]
test ebp, ebp
je 0x39bb0cf
mov eax, ecx
cmp esi, ebp
je 0x39bb0c8
mov eax, ebx
mov dword [eax + ebp], 0
test esi, esi
je 0x39bb0e3
lea eax, [ecx + 4]
cmp esi, ebp
je 0x39bb0dc
mov eax, ebx
mov dword [eax + esi], 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x9c]
call fcn.039ba800
mov byte [esp + 0x3d0], 5
mov ecx, dword [esp + 0x3dc]
lea edx, [edi + ecx]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xa0]
call fcn.039ba890
test eax, eax
je 0x39bb262
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x88]
call fcn.039ba800
mov byte [esp + 0x3d0], 6
push 0
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x8c]
call fcn.039ba9c0
test eax, eax
je 0x39bb246
test ebp, ebp
je 0x39bb1bd
cmp esi, ebp
mov esi, dword [esp + 0x20]
je 0x39bb165
mov esi, ebx
mov eax, dword [esp + 0x3fc]
mov ecx, dword [esp + 0x3e8]
mov edi, dword [esp + 0x3ec]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x3c]
lea ebx, [esp + 0x44]
call fcn.039baae0
mov dword [esi + ebp], eax
mov eax, dword [esp + 0x58]
add esp, 0x10
test eax, eax
je 0x39bb1b9
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x60], eax
je 0x39bb1b2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax], edx
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x39bb246
cmp esi, ebp
jne 0x39bb1d2
mov esi, dword [esp + 0x20]
add esi, 4
jmp 0x39bb1d6
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x3fc]
mov ecx, dword [esp + 0x3f0]
mov edi, dword [esp + 0x3f4]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x3c]
lea ebx, [esp + 0x44]
call fcn.039baae0
mov ecx, dword [esp + 0x2c]
mov dword [esi + ecx], eax
mov eax, dword [esp + 0x70]
add esp, 0x10
test eax, eax
je 0x39bb244
cmp eax, dword [esp + 0x48]
jne 0x39bb233
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
add ecx, 4
mov dword [ecx + eax], edx
jmp 0x39bb246
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov dword [ecx + eax], edx
jmp 0x39bb246
mov esi, ecx
mov byte [esp + 0x3d0], 5
lea ecx, [esp + 0x84]
call fcn.039ba950
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x3d0], 4
lea ecx, [esp + 0x98]
call fcn.039ba950
add dword [esp + 0x20], 8
inc edi
add ebx, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x18], ebx
cmp edi, dword [esp + 0x28]
jb 0x39bb0b8
cmp dword [esp + 0x3f8], 1
jne 0x39bb2b3
mov edx, dword [esp + 0x24]
xor eax, eax
test esi, esi
setne al
xor ecx, ecx
test ebp, ebp
setne cl
add eax, ecx
mov dword [edx], eax
jmp 0x39bb2bd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
lea ecx, [esp + 0x14]
call fcn.03941740
mov byte [esp + 0x3d0], 3
lea ecx, [esp + 0x74]
call fcn.039ba950
jmp 0x39baf5b
mov edx, dword [0x3a56b80]
push edx
push str._Requested_number_of_entries_only_
mov ecx, edi
call fcn.039efdd0
mov eax, dword [esp + 0x54]
movzx ecx, word [eax + 0xe]
movzx edx, word [eax + 0xc]
mov eax, dword [esp + 0x24]
add ecx, edx
mov dword [eax], ecx
jmp 0x39baf5b
push ebx
call dword [0x3a5fde0]
xor al, al
mov ecx, dword [esp + 0x3c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b0]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x3c0
ret