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

Disassembly:
mov eax, dword [0x4d0d74]
sub esp, 0x60
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x46bd56
mov ecx, dword [0x4d0d68]
cmp ecx, edi
je 0x46bd56
mov edx, 0x46b120
test edx, edx
je 0x46bd56
mov edx, dword [eax]
cmp byte [edx], 0
je 0x46bd56
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x46bcf0
xor edi, edi
mov ebp, dword [eax]
mov eax, dword [esp + 0x10]
mov esi, 0x491368
mov ebx, dword [eax]
mov ecx, dword [esi]
push ecx
push ebp
call fcn.0047c900
add esp, 8
test eax, eax
je 0x46bd19
add esi, 0x10
inc edi
cmp esi, str.glue_battle.net_backgroundsprofilebkg.pcx
jl 0x46bcfd
cmp edi, 0x19
je 0x46bd37
cmp byte [ebx], 0
je 0x46bd2c
mov dword [edi*4 + 0x4d0da4], ebx
jmp 0x46bd37
mov dword [edi*4 + 0x4d0da4], 0x4a6940
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add eax, 4
add esi, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov edx, dword [eax]
cmp byte [edx], 0
jne 0x46bcee
xor edi, edi
mov eax, dword [0x4d0de8]
push 0x4a6940
push eax
mov dword [0x4d0d88], edi
call fcn.0047c900
add esp, 8
test eax, eax
jne 0x46bda3
mov ecx, dword [0x4d0dec]
push 0x4a6940
push ecx
call fcn.0047c900
add esp, 8
test eax, eax
jne 0x46bda3
mov edx, dword [0x4d0df0]
push 0x4a6940
push edx
call fcn.0047c900
add esp, 8
test eax, eax
je 0x46bdad
mov dword [0x4d0d88], 1
mov eax, dword [0x4d0d88]
mov dword [esp + 0x24], 1
cmp eax, edi
mov eax, dword [0x4d0d98]
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], edi
je 0x46bde1
cmp eax, edi
je 0x46bdda
mov eax, str.glue_battle.net_backgrounds_bnprofile_iron.pcx
jmp 0x46bdef
mov eax, str.glue_battle.net_backgrounds_bnviewprofile_iron.pcx
jmp 0x46bdef
cmp eax, edi
mov eax, str.glue_battle.net_backgrounds_bnprofile.pcx
jne 0x46bdef
mov eax, str.glue_battle.net_backgrounds_bnviewprofile.pcx
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x1c]
push 1
push ecx
push 0x4d0d60
push eax
push 1
push 0xffffffffffffffff
push str.Popup
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
push esi
call fcn.004647d0
lea edx, [esp + 0x40]
push 1
push edx
push 0x4d0d8c
push str.glue_battle.netgenericicons_but_xsm.pcx
push 1
push 0xffffffffffffffff
push str.Button
push edi
push edi
call fcn.004647d0
mov ecx, dword [0x4d0d8c]
add esp, 0x48
lea eax, [esp + 0x1c]
lea edx, [esp + 0x24]
push 0xffffffffffffffff
push 1
push eax
push ecx
push edi
push edx
push esi
call sub.Storm.dll_Ordinal_216
push 0x4915b8
push 2
push esi
call fcn.0046c910
push 0x4915d0
push 1
push esi
mov dword [0x4d0d78], eax
call fcn.0046c910
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x18
mov dword [0x4d0d84], eax
mov eax, dword [0x4d0d54]
push eax
push edi
push 0xc
push 0x40d
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4d0d88]
push edi
cmp eax, edi
je 0x46c034
mov ecx, dword [0x4d0d50]
push 0x5aa
imul ecx, dword [0x4d0d90]
push str.C:war2bneBattle.netgluBNProfile.cpp
push ecx
call sub.Storm.dll_Ordinal_401
mov edx, dword [0x4d0d50]
mov ecx, dword [0x4d0d90]
cmp eax, edi
mov dword [0x4d0da0], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x74], eax
je 0x46bf45
mov ebx, dword [0x4d0d9c]
cmp ebx, edi
je 0x46bf45
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x18], edx
push 0xcc0020
push edi
lea edx, [esp + 0x1c]
push ecx
push edx
lea edx, [esp + 0x50]
push edx
push ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x2c], ecx
push ecx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call sub.Storm.dll_Ordinal_314
push edi
call fcn.0046c160
push 1
mov ebp, eax
call fcn.0046c160
push 3
mov edi, eax
call fcn.0046c160
push 4
mov dword [esp + 0x24], eax
call fcn.0046c160
mov ebx, eax
xor eax, eax
add esp, 0x10
cmp ebp, eax
je 0x46bffe
cmp edi, eax
je 0x46bff8
cmp ebx, eax
je 0x46bff8
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call sub.Storm.dll_Ordinal_390
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x30]
push edx
push ebp
push edi
push ebx
push eax
call fcn.0046c1d0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x44]
push ecx
push ebp
push edi
push edx
push eax
call fcn.0046c580
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0x58]
push 0x39
push ecx
push edi
push edx
call fcn.0046af40
add esp, 0x38
push ebp
call sub.Storm.dll_Ordinal_383
push edi
call sub.Storm.dll_Ordinal_383
mov eax, dword [esp + 0x14]
push eax
call sub.Storm.dll_Ordinal_383
jmp 0x46c00c
push ebp
call sub.Storm.dll_Ordinal_383
test edi, edi
je 0x46c008
push edi
call sub.Storm.dll_Ordinal_383
test ebx, ebx
je 0x46c012
push ebx
call sub.Storm.dll_Ordinal_383
push 0x5e4
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x60]
mov edi, eax
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x46c083
mov edx, dword [0x4d0d80]
push 0x5b4
imul edx, dword [0x4d0d7c]
push str.C:war2bneBattle.netgluBNProfile.cpp
push edx
call sub.Storm.dll_Ordinal_401
mov ecx, dword [0x4d0d80]
mov edx, dword [0x4d0d7c]
push ecx
push edx
push eax
mov dword [0x4d0da0], eax
call fcn.0046a4c0
add esp, 0xc
push 0x424
push esi
call ebx
mov edi, eax
lea eax, [esp + 0x60]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x4d0d88]
test eax, eax
je 0x46c099
mov ecx, dword [0x4d0d50]
mov eax, dword [0x4d0d90]
jmp 0x46c0a4
mov ecx, dword [0x4d0d80]
mov eax, dword [0x4d0d7c]
mov edx, dword [0x4d0da0]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x68]
push eax
push ecx
push edx
push 1
push 0xffffffffffffffff
push 0x4ad984
push esi
push edi
call sub.Storm.dll_Ordinal_222
mov ebp, dword [0x4d0d74]
test ebp, ebp
je 0x46c104
mov edi, dword [0x4d0d68]
test edi, edi
je 0x46c104
mov eax, fcn.0046ca00
test eax, eax
je 0x46c104
mov eax, dword [ebp]
cmp byte [eax], 0
je 0x46c104
mov ecx, dword [edi]
push esi
push ecx
push eax
call fcn.0046ca00
mov eax, dword [ebp + 4]
add ebp, 4
add esp, 0xc
add edi, 4
cmp byte [eax], 0
jne 0x46c0e9
mov eax, dword [0x4d0d98]
test eax, eax
je 0x46c121
push 1
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
push 0x412
push esi
call ebx
push eax
call fcn.004651b0
add esp, 4
push 0
push 1
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 2
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret