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

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x810
mov dword [esp + 0x804], ecx
mov ecx, dword [esp + 0x804]
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 2
lea eax, [esp + 0x750]
mov dword [esp + 0x84], ecx
mov ecx, eax
call fcn.10006010
sub esp, 8
lea ecx, [esp + 0x750]
mov dword [esp + 0x80], eax
call fcn.100060e0
lea ecx, str.HalleBerry_begin
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10005bf0
mov ecx, esp
lea edx, [esp + 0x7ec]
mov dword [ecx], edx
mov ecx, eax
call fcn.10006190
sub esp, 4
lea ecx, [esp + 0x7ec]
call fcn.100061c0
mov dword [esp], eax
call fcn.100044b0
lea ecx, [esp + 0x7ec]
call fcn.100061e0
lea ecx, [esp + 0x750]
call fcn.10006210
lea ecx, [esp + 0x738]
call fcn.100042c0
lea ecx, [esp + 0x720]
mov dword [esp + 0x7c], eax
call fcn.100042c0
lea ecx, [esp + 0x708]
mov dword [esp + 0x78], eax
call fcn.100042c0
lea ecx, [esp + 0x6f0]
mov dword [esp + 0x74], eax
call fcn.100042c0
lea ecx, [esp + 0x738]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edx
call fcn.10006240
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 2
lea ecx, [esp + 0x640]
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x640]
mov dword [esp + 0x68], eax
call fcn.100060e0
lea ecx, str.HalleBerry_exename:
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
lea ecx, [esp + 0x738]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10006290
mov ecx, esp
lea edx, [esp + 0x6d8]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x6d8]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x6d8]
call fcn.10005060
lea ecx, [esp + 0x640]
call fcn.10005090
lea eax, [esp + 0x738]
lea ecx, [esp + 0x720]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100065a0
xor ecx, ecx
and al, 1
movzx edx, al
cmp ecx, edx
jne 0x1000537b
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 2
lea ecx, [esp + 0x590]
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x590]
mov dword [esp + 0x64], eax
call fcn.100060e0
lea ecx, str.HalleBerry_couldnt_find_a_proper_key_for_exename
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
mov ecx, esp
lea edx, [esp + 0x628]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x628]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x628]
call fcn.10005060
lea ecx, [esp + 0x590]
call fcn.10005090
mov byte [esp + 0x80b], 0
mov dword [esp + 0x58c], 1
jmp 0x10005baa
call fcn.10004630
mov ecx, esp
lea edx, [esp + 0x580]
mov dword [ecx], edx
mov ecx, eax
call fcn.10004680
sub esp, 4
cmp dword [esp + 0x580], 6
jae 0x100053db
mov dword [esp + 0x574], 0xc8
mov eax, esp
lea ecx, [esp + 0x574]
mov dword [eax], ecx
lea ecx, [esp + 0x578]
call fcn.10006710
sub esp, 4
lea ecx, [esp + 0x578]
mov dword [esp], ecx
mov dword [esp + 0x60], eax
call fcn.100066d0
lea ecx, [esp + 0x55c]
call fcn.100042c0
lea ecx, [esp + 0x55c]
mov edx, dword [esp + 0x84]
mov esi, dword [edx + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 0x5c], eax
call fcn.10006740
lea ecx, [esp + 0x550]
call fcn.1000ed10
lea ecx, [esp + 0x550]
mov dword [esp], ecx
mov dword [esp + 0x58], eax
call fcn.10006790
lea eax, [esp + 0x550]
mov dword [esp + 0x54c], eax
mov ecx, dword [esp + 0x54c]
mov eax, esp
lea edx, [esp + 0x548]
mov dword [eax], edx
call fcn.10006820
sub esp, 4
mov ecx, dword [esp + 0x54c]
mov eax, esp
lea edx, [esp + 0x544]
mov dword [eax], edx
call fcn.10006860
sub esp, 4
lea eax, [esp + 0x544]
lea ecx, [esp + 0x548]
mov edx, esp
mov dword [edx], eax
call fcn.100068a0
sub esp, 4
test al, 1
jne 0x10005490
jmp 0x100056ee
lea ecx, [esp + 0x548]
call fcn.1001cbf0
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0x52c]
call fcn.100068d0
sub esp, 4
mov ecx, esp
lea edx, [esp + 0x55c]
mov dword [ecx], edx
lea ecx, [esp + 0x514]
mov dword [esp + 0x54], eax
call fcn.100068d0
sub esp, 4
mov ecx, esp
lea edx, [esp + 0x52c]
mov dword [ecx], edx
lea ecx, [esp + 0x514]
mov dword [esp + 0x50], eax
call fcn.10006970
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 1
mov dword [ecx], 2
lea ecx, [esp + 0x460]
mov dword [esp + 0x4c], eax
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x460]
mov dword [esp + 0x48], eax
call fcn.100060e0
lea ecx, str.HalleBerry_config_path:
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
lea ecx, [esp + 0x514]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10006290
mov ecx, esp
lea edx, [esp + 0x4fc]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x4fc]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x4fc]
call fcn.10005060
lea ecx, [esp + 0x460]
call fcn.10005090
mov eax, esp
lea ecx, [esp + 0x514]
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
call fcn.100069a0
sub esp, 4
xor ecx, ecx
and al, 1
movzx edx, al
cmp ecx, edx
jne 0x1000567e
lea eax, [esp + 0x52c]
lea ecx, str.conf.config
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100069e0
test al, 1
jne 0x100055d2
jmp 0x1000567e
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 2
lea ecx, [esp + 0x3b0]
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x3b0]
mov dword [esp + 0x44], eax
call fcn.100060e0
lea ecx, str.HalleBerry_failed_to_load_config_file
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
lea ecx, [esp + 0x514]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10006290
mov ecx, esp
lea edx, [esp + 0x448]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x448]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x448]
call fcn.10005060
lea ecx, [esp + 0x3b0]
call fcn.10005090
mov byte [esp + 0x80b], 0
mov dword [esp + 0x58c], 1
jmp 0x10005689
mov dword [esp + 0x58c], 0
lea ecx, [esp + 0x514]
call fcn.10005060
mov ecx, dword [esp + 0x58c]
test ecx, ecx
jne 0x100056b4
jmp 0x100056a9
mov dword [esp + 0x58c], 0
lea ecx, [esp + 0x52c]
call fcn.10005060
mov ecx, dword [esp + 0x58c]
test ecx, ecx
jne 0x10005b92
jmp 0x100056d4
jmp 0x100056d9
lea ecx, [esp + 0x548]
call fcn.10006a20
mov dword [esp + 0x40], eax
jmp 0x10005469
lea eax, [esp + 0x708]
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.10006740
mov eax, esp
lea ecx, [esp + 0x6f0]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x720]
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
call fcn.10006a40
sub esp, 8
xor ecx, ecx
and al, 1
movzx edx, al
cmp ecx, edx
jne 0x100057ea
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 2
lea ecx, [esp + 0x300]
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x300]
mov dword [esp + 0x3c], eax
call fcn.100060e0
lea ecx, str.HalleBerry_failed_to_get_config_value_for_key
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
lea ecx, [esp + 0x720]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10006290
mov ecx, esp
lea edx, [esp + 0x398]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x398]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x398]
call fcn.10005060
lea ecx, [esp + 0x300]
call fcn.10005090
mov byte [esp + 0x80b], 0
mov dword [esp + 0x58c], 1
jmp 0x10005b92
lea ecx, [esp + 0x2f4]
call fcn.1000ed10
mov ecx, esp
mov dword [ecx], 0x1004c9c4
lea ecx, [esp + 0x2dc]
mov dword [esp + 0x38], eax
call fcn.10004240
sub esp, 4
lea ecx, [esp + 0x6f0]
lea edx, [esp + 0x2dc]
lea esi, [esp + 0x2f4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0x34], eax
call fcn.10006af0
lea eax, [esp + 0x2f4]
mov dword [esp + 0x2d8], eax
mov ecx, dword [esp + 0x2d8]
mov eax, esp
lea edx, [esp + 0x2d4]
mov dword [eax], edx
call fcn.10006820
sub esp, 4
mov ecx, dword [esp + 0x2d8]
mov eax, esp
lea edx, [esp + 0x2d0]
mov dword [eax], edx
call fcn.10006860
sub esp, 4
lea eax, [esp + 0x2d0]
lea ecx, [esp + 0x2d4]
mov edx, esp
mov dword [edx], eax
call fcn.100068a0
sub esp, 4
test al, 1
jne 0x100058a3
jmp 0x10005b67
lea ecx, [esp + 0x2d4]
call fcn.1001cbf0
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0x2b8]
call fcn.100068d0
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 1
mov dword [ecx], 2
lea ecx, [esp + 0x208]
mov dword [esp + 0x30], eax
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x208]
mov dword [esp + 0x2c], eax
call fcn.100060e0
lea ecx, [0x1004c9c8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
lea ecx, [esp + 0x2b8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10006290
mov ecx, esp
lea edx, [esp + 0x2a0]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x2a0]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x2a0]
call fcn.10005060
lea ecx, [esp + 0x208]
call fcn.10005090
mov eax, esp
mov dword [eax + 4], 1
mov dword [eax], 2
lea ecx, [esp + 0x158]
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x158]
mov dword [esp + 0x28], eax
call fcn.100060e0
lea ecx, str.HalleBerry_executing_loader
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
mov ecx, esp
lea edx, [esp + 0x1f0]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x1f0]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x1f0]
call fcn.10005060
lea ecx, [esp + 0x158]
call fcn.10005090
lea eax, [esp + 0x140]
lea ecx, [esp + 0x708]
lea edx, [esp + 0x2b8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.10006cd0
mov eax, esp
lea ecx, [esp + 0x140]
mov dword [eax], ecx
lea ecx, [esp + 0x2b8]
call fcn.10006be0
sub esp, 4
lea ecx, [esp + 0x140]
mov dword [esp + 0x24], eax
call fcn.10005060
mov eax, dword [esp + 0x84]
add eax, 0x24
lea ecx, [esp + 0x2b8]
mov dword [esp + 0x20], eax
call fcn.10005040
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], 0x77
mov ecx, dword [esp + 0x20]
call fcn.10004020
sub esp, 8
mov dword [esp + 0x13c], eax
cmp dword [esp + 0x13c], 0
je 0x10005a7f
lea eax, str.SUCCESS
mov dword [esp + 0x1c], eax
jmp 0x10005a8e
lea eax, str.FAILURE
mov dword [esp + 0x1c], eax
jmp 0x10005a8e
mov eax, dword [esp + 0x1c]
mov ecx, esp
mov dword [ecx + 4], 1
mov dword [ecx], 2
lea ecx, [esp + 0x88]
mov dword [esp + 0x18], eax
call fcn.10004f40
sub esp, 8
lea ecx, [esp + 0x88]
mov dword [esp + 0x14], eax
call fcn.100060e0
lea ecx, str.HalleBerry_load_result:
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10004b20
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.10004b20
mov ecx, esp
lea edx, [esp + 0x124]
mov dword [ecx], edx
mov ecx, eax
call fcn.10005010
sub esp, 4
lea ecx, [esp + 0x124]
call fcn.10005040
mov dword [esp], eax
call fcn.10004570
lea ecx, [esp + 0x124]
call fcn.10005060
lea ecx, [esp + 0x88]
call fcn.10005090
mov eax, dword [esp + 0x84]
add eax, 0x2c
mov ecx, esp
lea edx, [esp + 0x13c]
mov dword [ecx], edx
mov ecx, eax
call fcn.10006d70
sub esp, 4
lea ecx, [esp + 0x2b8]
call fcn.10005060
lea ecx, [esp + 0x2d4]
call fcn.10006a20
mov dword [esp + 0x10], eax
jmp 0x1000587c
mov byte [esp + 0x80b], 1
mov dword [esp + 0x58c], 1
lea ecx, [esp + 0x2dc]
call fcn.10005060
lea ecx, [esp + 0x2f4]
call fcn.10006ed0
lea ecx, [esp + 0x550]
call fcn.10006ed0
lea ecx, [esp + 0x55c]
call fcn.10005060
lea ecx, [esp + 0x6f0]
call fcn.10005060
lea ecx, [esp + 0x708]
call fcn.10005060
lea ecx, [esp + 0x720]
call fcn.10005060
lea ecx, [esp + 0x738]
call fcn.10005060
movzx ecx, byte [esp + 0x80b]
and ecx, 1
mov eax, ecx
lea esp, [ebp - 4]
pop esi
pop ebp
ret