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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x512ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xac], esi
call fcn.004947e0
lea edi, [esi + 0x1d0]
push 0x5245f0
mov ecx, edi
mov dword [esp + 0xc0], 0
mov dword [esi], 0x5321a0
mov dword [esi + 0x20], 0x53218c
call fcn.00402110
mov ebx, 1
lea ecx, [esi + 0x1d4]
push 0x5245f0
mov byte [esp + 0xc0], bl
call fcn.00402110
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x1d8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1e8], ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 0x80]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0xbc], 2
mov dword [esi + 0x1e0], 0
mov dword [esi + 0x1e4], 0x3ff00000
call dword [edx + 0x54]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.medals
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x874]
call fcn.004960f0
mov ecx, dword [esi + 0x1d8]
mov edx, dword [eax + 0x90]
mov eax, dword [edx + ecx*4]
cmp dword [esi + 0x7c], eax
je 0x47b0b4
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov ecx, dword [esi + 0x1d8]
mov dword [esp + 0x78], str.Medal_of_Annihilation
mov dword [esp + 0x7c], str.Distinguished_Green_Greed_Cross
mov dword [esp + 0x80], str.Meritorious_Marksmanship_Award
mov dword [esp + 0x84], str.Medal_of_Great_Appetite_Achievement
mov dword [esp + 0x88], str.Chicken_Hunter_Medal_of_Excellence
mov dword [esp + 0x8c], str.Order_of_the_Teflon_Certificate_of_Merit
mov dword [esp + 0x90], str.Recognition_Medal_of_Self_Restraint
mov dword [esp + 0x94], str.Honourable__Either_Brave_or_Stupid__Achievement_Award
mov dword [esp + 0x98], str.Superior_Budget_Thriftiness_Commendation_Medal
mov dword [esp + 0x9c], str.Greatest_Chicken_Hunter_of_All_Time_Award
mov dword [esp + 0xa0], str.Rookie_Hero_Campaign_Trophy
mov dword [esp + 0xa4], str.Veteran_Chicken_Hunter_Campaign_Trophy
mov dword [esp + 0xa8], str._I_Eat_Chickens_for_Breakfast__Campaign_Trophy
mov edx, dword [esp + ecx*4 + 0x78]
test edx, edx
mov dword [esi + 0x1c4], 0x3f400000
mov byte [esi + 0x130], bl
mov dword [esp + 0x30], str.Awarded_for_performing_a_multikill_of_30_or_more_enemies
mov dword [esp + 0x34], str.Awarded_for_90__coin_collection_in_a_single_wave
mov dword [esp + 0x38], str.Awarded_for_90__shot_accuracy_in_a_single_wave
mov dword [esp + 0x3c], str.Awarded_for_90__food_collection_in_a_single_wave
mov dword [esp + 0x40], str.Awarded_for_90__kill_ratio_in_a_single_star_system
mov dword [esp + 0x44], str.Awarded_for_no_deaths_in_a_single_star_system
mov dword [esp + 0x48], str.Awarded_for_not_using_any_missiles_in_a_single_star_system
mov dword [esp + 0x4c], str.Awarded_for_not_using_any_power_ups_in_a_single_star_system
mov dword [esp + 0x50], str.Awarded_for_completing_an_entire_mission_without_using_any_missiles
mov dword [esp + 0x54], str.Awarded_for_completing_an_entire_mission_without_dying_once
mov dword [esp + 0x58], str.Awarded_for_completing_a_mission_on_the_rookie_difficulty_level
mov dword [esp + 0x5c], str.Awarded_for_completing_a_mission_on_the_veteran_difficulty_level
mov dword [esp + 0x60], str.Awarded_for_completing_a_mission_on_the_superstar_hero_difficulty_level
jne 0x47b1c7
xor eax, eax
jmp 0x47b1d9
mov eax, edx
lea ebx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47b1d0
sub eax, ebx
push eax
push edx
mov ecx, edi
call fcn.00401ee0
mov edx, dword [esi + 0x1d8]
mov ecx, dword [esp + edx*4 + 0x30]
test ecx, ecx
jne 0x47b1f4
xor eax, eax
jmp 0x47b209
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47b200
sub eax, edi
push eax
push ecx
lea ecx, [esi + 0x1d4]
call fcn.00401ee0
mov eax, dword [esi + 0x1e8]
test eax, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x40], 0xbf800000
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xbf800000
mov dword [esp + 0x4c], 0xbf000000
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xc0000000
mov dword [esp + 0x58], 0xc0000000
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xc0000000
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x40000000
mov dword [esp + 0x70], 0xc0000000
mov dword [esp + 0x74], 0
jne 0x47b30e
push 0x1d0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0xbc], 3
je 0x47b2d8
mov ecx, eax
call fcn.004947e0
mov edi, eax
jmp 0x47b2da
xor edi, edi
mov ecx, dword [esi + 0x7c]
mov eax, dword [edi]
push ecx
mov ecx, edi
mov byte [esp + 0xc0], 2
call dword [eax + 0x58]
push edi
mov ecx, esi
call fcn.00403010
mov ecx, dword [esp + 0xb4]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [esp + 0x10], 0
lea ebx, [esp + 0x38]
lea ebx, [ebx]
mov eax, dword [esi + 0x1e8]
cmp eax, 3
jl 0x47b330
mov eax, 3
cmp dword [esp + 0x10], eax
jge 0x47b2f5
push 0x1d0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xbc], 4
je 0x47b35e
mov ecx, eax
call fcn.004947e0
mov edi, eax
jmp 0x47b360
xor edi, edi
mov eax, dword [esi + 0x7c]
mov edx, dword [edi]
push eax
mov ecx, edi
mov byte [esp + 0xc0], 2
call dword [edx + 0x58]
fld dword [esi + 0x1c0]
fmul qword [0x51fc68]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
fld st(0)
fmul dword [ebx - 8]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
fld st(0)
fmul dword [ebx - 4]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fmul dword [ebx]
mov dword [eax + 4], edx
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x64]
fild dword [esp + 0x10]
mov eax, dword [edi]
push ecx
fstp qword [esp + 0x1c]
mov ecx, edi
fld qword [esp + 0x1c]
fmul qword [0x51fc68]
fsubr qword [0x51f760]
fstp dword [esp]
call dword [eax + 0x84]
fld qword [esp + 0x18]
fmul qword [0x521280]
fsubr qword [0x51f760]
fmul dword [0x524a10]
call fcn.004ed8c0
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov byte [esp + 0x17], 0xff
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x78], ecx
push edi
mov ecx, esi
call fcn.00402f70
inc dword [esp + 0x10]
add ebx, 0xc
jmp 0x47b320